Re: Minor optimization in parse_subsystem_tracepoint_event

From: Ingo Molnar
Date: Mon Dec 07 2009 - 02:10:29 EST



* Ulrich Drepper <drepper@xxxxxxxxxx> wrote:

> Uses of strcat are almost always signs that someone is too lazy to think
> about the code a bit more carefully. One always has to know about the
> lengths of the strings involved to avoid buffer overflows.
>
> This is one case where the size of the object code for me is reduced by
> 38 bytes. The code should also be faster, especially if flags is non-NULL.
>
> Signed-off-by: Ulrich Drepper <drepper@xxxxxxxxxx>

Applied, thanks a lot Ulrich!

Ingo
--
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/