diff options
author | Karel Zak <kzak@redhat.com> | 2006-12-07 00:26:14 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2006-12-07 00:26:14 +0100 |
commit | d03dd60840f0a08464d5266539ad356aefe24b03 (patch) | |
tree | 0a9ad240a7a88eb6b11b152974a7a51a0df79b75 /misc-utils/setterm.c | |
parent | a21409f54e0d600a5e40dc4f176eddac3f7172ee (diff) | |
download | util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.tar.gz |
Imported from util-linux-2.12a tarball.
Diffstat (limited to 'misc-utils/setterm.c')
-rw-r--r-- | misc-utils/setterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c index 7d105721..f83adf03 100644 --- a/misc-utils/setterm.c +++ b/misc-utils/setterm.c @@ -1085,7 +1085,7 @@ perform_sequence(int vcterm) { result = klogctl(6, NULL, 0); if (result != 0) - printf(_("klogctl error: %s\n"), strerror(result)); + printf(_("klogctl error: %s\n"), strerror(errno)); } /* -msglevel [0-8] */ @@ -1093,7 +1093,7 @@ perform_sequence(int vcterm) { /* 8 -- Set level of messages printed to console */ result = klogctl(8, NULL, opt_msglevel_num); if (result != 0) - printf(_("klogctl error: %s\n"), strerror(result)); + printf(_("klogctl error: %s\n"), strerror(errno)); } /* -blength [0-2000] */ |