Skip to contentSkip to conversation

compact print_symbol() output

PATCH Chuck Ebbert 1 participant 1 message Jan 18, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 6 lines · Valdis.Kletnieks
Quoted 4 lines · Chuck Ebbert

OK, how about this: remove the "0x" from the function size, i.e. print:

        kernel_symbol+0xd3/10e
Quoted 8 lines
Quoted 6 lines

instead of:

        kernel_symbol+0xd3/0x10e

This saves two characters per symbol and it should still be clear that the second number is hexadecimal.

Good. Now repeat for a function that's 6 bytes shorter.

OK, I probably should have done that:

        kernel_symbol+0xd3/108

My point is that if the "numerator" is hex you should assume the "denominator" is too.

Signature · 2 lines
Chuck
Currently reading: _Einstein's Bridge_ by John Cramer