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: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
24de38620d
commit
d1aaf8cf8a
|
@ -78,11 +78,13 @@ while (<>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($count == 0) {
|
if ($count == 0) {
|
||||||
print "No data found in the dmesg. Make sure that 'printk.time=1' and\n";
|
print STDERR <<END;
|
||||||
print "'initcall_debug' are passed on the kernel command line.\n\n";
|
No data found in the dmesg. Make sure that 'printk.time=1' and
|
||||||
print "Usage: \n";
|
'initcall_debug' are passed on the kernel command line.
|
||||||
print " dmesg | perl scripts/bootgraph.pl > output.svg\n\n";
|
Usage:
|
||||||
exit;
|
dmesg | perl scripts/bootgraph.pl > output.svg
|
||||||
|
END
|
||||||
|
exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<?xml version=\"1.0\" standalone=\"no\"?> \n";
|
print "<?xml version=\"1.0\" standalone=\"no\"?> \n";
|
||||||
|
|
Loading…
Reference in New Issue