Skip to content
Snippets Groups Projects
Commit d1aaf8cf authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Ingo Molnar
Browse files

tracing/fastboot: put error message on stderr


Since this scripts output is usually redirected, put error messages
on standard error and exit with error code if no data is found.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Acked-by: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 24de3862
No related merge requests found
......@@ -78,11 +78,13 @@ while (<>) {
}
if ($count == 0) {
print "No data found in the dmesg. Make sure that 'printk.time=1' and\n";
print "'initcall_debug' are passed on the kernel command line.\n\n";
print "Usage: \n";
print " dmesg | perl scripts/bootgraph.pl > output.svg\n\n";
exit;
print STDERR <<END;
No data found in the dmesg. Make sure that 'printk.time=1' and
'initcall_debug' are passed on the kernel command line.
Usage:
dmesg | perl scripts/bootgraph.pl > output.svg
END
exit 1;
}
print "<?xml version=\"1.0\" standalone=\"no\"?> \n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment