summaryrefslogtreecommitdiffstats
path: root/misc-utils/setterm.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:14 +0100
committerKarel Zak2006-12-07 00:26:14 +0100
commitd03dd60840f0a08464d5266539ad356aefe24b03 (patch)
tree0a9ad240a7a88eb6b11b152974a7a51a0df79b75 /misc-utils/setterm.c
parentImported from util-linux-2.12pre tarball. (diff)
downloadkernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.tar.gz
kernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.tar.xz
kernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.zip
Imported from util-linux-2.12a tarball.
Diffstat (limited to 'misc-utils/setterm.c')
-rw-r--r--misc-utils/setterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c
index 7d1057217..f83adf036 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] */