Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Makefile: add distclean target
[slstatus.git]
/
components
/
kernel_release.c
diff --git
a/components/kernel_release.c
b/components/kernel_release.c
index
f539b6a
..
4e67a28
100644
(file)
--- a/
components/kernel_release.c
+++ b/
components/kernel_release.c
@@
-1,6
+1,8
@@
/* See LICENSE file for copyright and license details. */
/* See LICENSE file for copyright and license details. */
+#include <errno.h>
#include <sys/utsname.h>
#include <stdio.h>
#include <sys/utsname.h>
#include <stdio.h>
+#include <string.h>
#include "../util.h"
#include "../util.h"
@@
-10,6
+12,7
@@
kernel_release(void)
struct utsname udata;
if (uname(&udata) < 0) {
struct utsname udata;
if (uname(&udata) < 0) {
+ fprintf(stderr, "uname: %s\n", strerror(errno));
return NULL;
}
return NULL;
}