diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2012-02-21 01:44:18 -0600 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-22 20:55:48 +0000 |
commit | 20840fc94fe709c047093c82eb78c4258d5fdcd1 (patch) | |
tree | 5f0273b1ebc54c14699ca7336f292e7f6844d745 | |
parent | eab14db2e96cc69a7509bf557276e808a010abb5 (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.c | 2 | ||||
-rw-r--r-- | radeonreg.c | 2 |
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) |