linux kernel - Can I printk in binary? -
i have bitmap need debug, , easier me printk number in binary rather decimal. can this?
there function print binary value in arch/parisc/kernel/traps.c
, called printbinary()
. can copy code (or link if happen on parisc). better still move somewhere generic in kernel tree, eg. lib
, , send patch lkml.
Comments
Post a Comment