Skip to content

Commit

Permalink
Remove unused trace specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Sep 16, 2024
1 parent c137c61 commit 477a85a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions elks/arch/i86/kernel/strace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 6 additions & 4 deletions elks/arch/i86/kernel/strace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 477a85a

Please sign in to comment.