Re: [PATCH 02/11] dynamic_debug: trim source-path prefix from dynamic_debug/control

From: Jim Cromie
Date: Tue Jun 28 2011 - 14:34:17 EST


On Tue, Jun 28, 2011 at 4:08 AM, Bart Van Assche <bvanassche@xxxxxxx> wrote:
> On Tue, Jun 28, 2011 at 9:09 AM, Jim Cromie <jim.cromie@xxxxxxxxx> wrote:
>>
>> Skip past unchanging absolute source-path prefix to print a path
>> thats relative to kernel source's root-dir.  This makes the file
>> easier to read without a wide screen.  For example:
>>
>> kernel/freezer.c:128 [freezer]cancel_freezing - "  clean up: %s\012"


>
> The above will break the output generated for out-of-tree kernel
> modules that use the dynamic debug facility.
>
> Bart.
>

ack, yes.

I'll add a check to see prefix matches before skipping it.
this will reduce efficiency slightly more, but its not a hot path.

thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/