Remove common patterns -- second try

Denys Vlasenko vda.linux at googlemail.com
Sun Sep 30 16:39:55 UTC 2007


On Sunday 30 September 2007 15:30, Loïc Grenié wrote:
>     I've tried to remove "common patterns" in the code.
>  Second try: I've changed bb_\(p?\)error_msg\(_and_die\)("%s", \(.*\))
>  in bb_simple_\1error_msg\2(\3).
> 
>    Patch attached.
> 
>         Loïc

May I suggest a simpler approach?

Make bb_simple_[p]error_msg_XXX(str) call bb_[p]error_msg_XXX("%s", str),
not the other way around.
--
vda



More information about the busybox mailing list