X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fbasic%2Ffixdep.c;h=679124b11e12645b088877fbee8d3d6e901cb24e;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=668a11a8b383ce4a35bd98daf5720ef0da9a2077;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 668a11a8b..679124b11 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -132,10 +132,20 @@ void usage(void) /* * Print out the commandline prefixed with cmd_ := - */ + * If commandline contains '#' escape with '\' so make to not see + * the '#' as a start-of-comment symbol + **/ void print_cmdline(void) { - printf("cmd_%s := %s\n\n", target, cmdline); + char *p = cmdline; + + printf("cmd_%s := ", target); + for (; *p; p++) { + if (*p == '#') + printf("\\"); + printf("%c", *p); + } + printf("\n\n"); } char * str_config = NULL;