uml: extend cmd line limits
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Anthony Brock
Blaisor,
Perhaps the error message should be changed from:
"
add_arg: Too much command line!\n"to something like:
"
add_arg: Too many command line arguments!\n"Does this explain the error more clearly? Or am I mistaken?
Yes, I was copying it and didn't notice the message didn't make sense.
Here is the patch, it's queued and will be sent shortly.
Signature · 3 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <[email protected]>, "Anthony Brock" <[email protected]>
Replace the message with a more meaningful one. Noted by Anthony Brock.
Signed-off-by Paolo 'Blaisorblade' Giarrusso <[email protected]>
---
linux-2.6.11-paolo/arch/um/kernel/um_arch.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
arch/um/kernel/um_arch.c renamed from arch/um/kernel/um_arch.c~uml-correct-message +1 -1
@@ -47,7 +47,7 @@ char command_line[COMMAND_LINE_SIZE] = {void add_arg (char *arg) {if (strlen (command_line) +strlen (arg) +1 >COMMAND_LINE_SIZE ) { -printf ("add_arg: Too much command line!\n" ); +printf ("add_arg: Too many command line arguments!\n" );exit (1 ); }if (strlen (command_line) >0 )
_