diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-02-28 22:17:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-02-28 22:17:12 +0000 |
commit | 316d213c96e21449f0c3e4d79fe87b64dc69ae13 (patch) | |
tree | 0f3274d98467a30eff6bb6507499d1fd16e9ce66 | |
parent | 13491c90c172096c9f3ad870d8e6ac4726720c88 (diff) | |
download | monitor-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |