aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-02-28 22:17:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-02-28 22:17:12 +0000
commit316d213c96e21449f0c3e4d79fe87b64dc69ae13 (patch)
tree0f3274d98467a30eff6bb6507499d1fd16e9ce66
parent13491c90c172096c9f3ad870d8e6ac4726720c88 (diff)
downloadmonitor-edid-316d213c96e21449f0c3e4d79fe87b64dc69ae13.tar
monitor-edid-316d213c96e21449f0c3e4d79fe87b64dc69ae13.tar.gz
monitor-edid-316d213c96e21449f0c3e4d79fe87b64dc69ae13.tar.bz2
monitor-edid-316d213c96e21449f0c3e4d79fe87b64dc69ae13.tar.xz
monitor-edid-316d213c96e21449f0c3e4d79fe87b64dc69ae13.zip
nicer error message when running not as root
-rw-r--r--vbe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vbe.c b/vbe.c
index a11b2c2..65d387f 100644
--- a/vbe.c
+++ b/vbe.c
@@ -166,7 +166,8 @@ int get_edid(char *edid)
vbe_get_edid_info(edid);
FreeInt10();
- }
+ } else
+ fprintf(stderr, "you must be root to run this program\n");
return ok ? 128 : 0;
}