Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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";