diff --git a/elks/arch/i86/kernel/strace.c b/elks/arch/i86/kernel/strace.c index f85044d06..e529afdc4 100644 --- a/elks/arch/i86/kernel/strace.c +++ b/elks/arch/i86/kernel/strace.c @@ -63,14 +63,14 @@ static void strace(void) if (fmtspec[info & 0xf] != NULL) printk(fmtspec[info & 0xf], p->args[i]); else switch (info & 0xf) { - case P_PULONG: - printk("%lu", get_user_long((void *)p->args[i])); - break; - case P_PSLONG: printk("%ld", get_user_long((void *)p->args[i])); break; #if UNUSED + case P_PULONG: /* currently unused */ + printk("%lu", get_user_long((void *)p->args[i])); + break; + case P_SLONG: /* currently unused*/ printk("%ld", *(long *)&p->args[i++]); break; diff --git a/elks/arch/i86/kernel/strace.h b/elks/arch/i86/kernel/strace.h index 6886b7ad8..3f382e341 100644 --- a/elks/arch/i86/kernel/strace.h +++ b/elks/arch/i86/kernel/strace.h @@ -68,10 +68,12 @@ #define P_PUSHORT 10 /* Pointer to Unsigned Short Int */ #define P_PSSHORT 11 /* Pointer to Signed Short Int */ -#define P_ULONG 12 /* Unsigned Long Int */ -#define P_SLONG 13 /* Signed Long Int */ -#define P_PULONG 14 /* Pointer to Unsigned Long Int */ -#define P_PSLONG 15 /* Pointer to Signed Long Int */ +#define P_PSLONG 12 /* Pointer to Signed Long Int */ +#if UNUSED +#define P_PULONG 13 /* Pointer to Unsigned Long Int */ +#define P_SLONG 14 /* Signed Long Int */ +#define P_ULONG 15 /* Unsigned Long Int */ +#endif #define ENTRY(name, info) { name, info } #define packinfo(n, a, b, c) (unsigned)(n | (a << 4) | (b << 8) | (c << 12))