summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2011-12-02 16:36:30 -0600
committerDave Airlie <airlied@redhat.com>2011-12-06 08:59:49 +0000
commitce42cb76349ea4d6be0e1cc068702578938d6e28 (patch)
tree01a5823fa2d0ba11f8d65f03d8d7296c59c61a42
parentca8c0f24a8f008edaed6aec8829dcdd9fe717c12 (diff)
prefix fatal error messages with "fatal error:"
Let the user know which message corresponds to the error that caused the tool to exit. [jn: using "fatal error:" instead of "Error:" for consistency with "usage:"] Signed-off-by: Tormod Volden <lists.tormod@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--avivotool.c2
-rw-r--r--radeonreg.c2
-rw-r--r--radeontool.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/avivotool.c b/avivotool.c
index 02b03ba..2b71077 100644
--- a/avivotool.c
+++ b/avivotool.c
@@ -64,7 +64,7 @@ unsigned char * volatile fb_mem;
static void fatal(char *why)
{
- fprintf(stderr, "%s", why);
+ fprintf(stderr, "fatal error: %s", why);
pci_system_cleanup();
}
diff --git a/radeonreg.c b/radeonreg.c
index 5f1ab61..a1329db 100644
--- a/radeonreg.c
+++ b/radeonreg.c
@@ -47,7 +47,7 @@ unsigned char * volatile fb_mem;
static void fatal(char *why)
{
- fprintf(stderr, "%s", why);
+ fprintf(stderr, "fatal error: %s", why);
pci_system_cleanup();
}
diff --git a/radeontool.c b/radeontool.c
index 4cfd231..25343b3 100644
--- a/radeontool.c
+++ b/radeontool.c
@@ -39,7 +39,7 @@ unsigned char * volatile ctrl_mem;
static void radeon_rom_legacy_mmio_table(unsigned char *bios, int offset);
static void fatal(char *why)
{
- fprintf(stderr, "%s", why);
+ fprintf(stderr, "fatal error: %s", why);
pci_system_cleanup();
exit(-1);
}