mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +00:00
x86emu: constify debug strings
Strings are all pointers to literal constants, just used as input to printf calls when debugging is enabled. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d5a5eece67
commit
71efd86828
4 changed files with 14 additions and 14 deletions
|
|
@ -163,13 +163,13 @@ void x86emu_inc_decoded_inst_len (int x)
|
|||
M.x86.enc_pos += x;
|
||||
}
|
||||
|
||||
void x86emu_decode_printf (char *x)
|
||||
void x86emu_decode_printf (const char *x)
|
||||
{
|
||||
sprintf(M.x86.decoded_buf+M.x86.enc_str_pos,"%s",x);
|
||||
M.x86.enc_str_pos += strlen(x);
|
||||
}
|
||||
|
||||
void x86emu_decode_printf2 (char *x, int y)
|
||||
void x86emu_decode_printf2 (const char *x, int y)
|
||||
{
|
||||
char temp[100];
|
||||
snprintf(temp,sizeof(temp),x,y);
|
||||
|
|
|
|||
Loading…
Reference in a new issue