summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2012-02-21 01:44:18 -0600
committerDave Airlie <airlied@redhat.com>2012-02-22 20:55:48 +0000
commit20840fc94fe709c047093c82eb78c4258d5fdcd1 (patch)
tree5f0273b1ebc54c14699ca7336f292e7f6844d745
parenteab14db2e96cc69a7509bf557276e808a010abb5 (diff)
avivotool, radeonreg: make fatal errors exit
It's safer not to continue once in an erroneous situation. This reverses a change made in radeontool-1.6.0~28 ("add more ram dumping stuff") and makes the behavior of avivotool match radeontool again. 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
2 files changed, 2 insertions, 2 deletions
diff --git a/avivotool.c b/avivotool.c
index 4f12d11..9a01a9f 100644
--- a/avivotool.c
+++ b/avivotool.c
@@ -66,7 +66,7 @@ static void die(const char *why)
{
fprintf(stderr, "fatal error: %s\n", why);
pci_system_cleanup();
-
+ exit(-1);
}
static void radeon_set(unsigned long offset, const char *name, unsigned int value)
diff --git a/radeonreg.c b/radeonreg.c
index 70c27fd..4d016fd 100644
--- a/radeonreg.c
+++ b/radeonreg.c
@@ -49,7 +49,7 @@ static void die(const char *why)
{
fprintf(stderr, "fatal error: %s\n", why);
pci_system_cleanup();
-
+ exit(-1);
}
static void radeon_set(unsigned long offset, const char *name, unsigned int value)