projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8468610
)
improved some debug messages
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 25 Mar 2012 09:22:14 +0000
(09:22 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 25 Mar 2012 09:22:14 +0000
(09:22 +0000)
src/lib/hdd_atasmart.c
patch
|
blob
|
history
diff --git
a/src/lib/hdd_atasmart.c
b/src/lib/hdd_atasmart.c
index
c15f06e
..
8c781bb
100644
(file)
--- a/
src/lib/hdd_atasmart.c
+++ b/
src/lib/hdd_atasmart.c
@@
-56,7
+56,7
@@
static void analyze_disk(const char *dname)
{
int f;
{
int f;
- log_debug("
Analyze error for disk
: %s", dname);
+ log_debug("
analyze_disk(hdd_atasmart)
: %s", dname);
f = open(dname, O_RDONLY|O_NOCTTY|O_NONBLOCK|O_CLOEXEC);
f = open(dname, O_RDONLY|O_NOCTTY|O_NONBLOCK|O_CLOEXEC);
@@
-74,14
+74,14
@@
struct psensor **hdd_psensor_list_add(struct psensor **sensors,
SkDisk *disk;
struct psensor *sensor, **tmp_sensors, **result;
SkDisk *disk;
struct psensor *sensor, **tmp_sensors, **result;
- log_debug("hdd_psensor_list_add");
+ log_debug("hdd_psensor_list_add
(hdd_atasmart)
");
paths = dir_list("/dev", filter_sd);
result = sensors;
tmp = paths;
while (*tmp) {
paths = dir_list("/dev", filter_sd);
result = sensors;
tmp = paths;
while (*tmp) {
- log_debug("hdd_psensor_list_add open %s", *tmp);
+ log_debug("hdd_psensor_list_add
(hdd_atasmart)
open %s", *tmp);
if (!sk_disk_open(*tmp, &disk)) {
id = malloc(strlen("hdd at") + strlen(*tmp) + 1);
if (!sk_disk_open(*tmp, &disk)) {
id = malloc(strlen("hdd at") + strlen(*tmp) + 1);
@@
-132,7
+132,7
@@
void hdd_psensor_list_update(struct psensor **sensors)
if (!ret) {
c = (kelvin - 273150) / 1000;
psensor_set_current_value(s, c);
if (!ret) {
c = (kelvin - 273150) / 1000;
psensor_set_current_value(s, c);
- log_debug("hdd
atasmart
: %s %.2f",
+ log_debug("hdd
_psensor_list_update(hdd_atasmart)
: %s %.2f",
s->id,
c);
}
s->id,
c);
}