Fishy casting in dbg_print() from pointers to non-pointers
eyalroz opened this issue · comments
In the dbg_print()
we cast void*
s into long
s and char
s; that's not right... apparently, the macros PR_CHR()
, PR_INT()
and others cast those non-pointer values into a void*
. Instead, let them pass the addresses of the values as void *
. That would be the minimal possible change.