Re: [PATCH 2/2] trace_uprobe: Simplify probes_seq_show()

From: Srikar Dronamraju
Date: Tue Feb 06 2018 - 07:48:07 EST



> Simplify probes_seq_show() function. We are using %lx to display
> the offset and we don't prepend unnecessary 0s in the offset.
>


The prepending of 0s was introduced by
tracing/uprobes: Do not print '0x (null)' when offset is 0
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a2fb3382

Wan,
Was there a reason to prepend 0s?