projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e1f8d2c
)
use log_err instead of fprintf, improved message
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 30 Apr 2012 00:58:13 +0000
(
00:58
+0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 30 Apr 2012 00:58:13 +0000
(
00:58
+0000)
src/lib/nvidia.c
patch
|
blob
|
history
diff --git
a/src/lib/nvidia.c
b/src/lib/nvidia.c
index
2f28114
..
cface2f
100644
(file)
--- a/
src/lib/nvidia.c
+++ b/
src/lib/nvidia.c
@@
-51,7
+51,7
@@
static int get_temp(struct psensor *sensor)
if (res == True)
return temp;
if (res == True)
return temp;
-
fprintf(stderr, _("ERROR: failed to retrieve nvidia temperature\n
"));
+
log_err(_("Failed to retrieve NVIDIA temperature.
"));
return 0;
}
return 0;
}
@@
-89,8
+89,7
@@
static int init()
display = XOpenDisplay(NULL);
if (!display) {
display = XOpenDisplay(NULL);
if (!display) {
- fprintf(stderr,
- _("ERROR: Cannot open connection to X Server\n"));
+ log_err(_("Cannot open connection to X11 server."));
return 0;
}
return 0;
}
@@
-98,7
+97,7
@@
static int init()
XNVCTRLQueryTargetCount(display, NV_CTRL_TARGET_TYPE_GPU, &n))
return n;
XNVCTRLQueryTargetCount(display, NV_CTRL_TARGET_TYPE_GPU, &n))
return n;
-
fprintf(stderr, _("ERROR: Cannot retrieve NVidia information\n
"));
+
log_err(_("Failed to retrieve NVIDIA information.
"));
return 0;
}
return 0;
}