Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Note the sensor number in the error output. ...
details: https://anonhg.NetBSD.org/src/rev/c7bc345d5159
branches: trunk
changeset: 342238:c7bc345d5159
user: jdc <jdc%NetBSD.org@localhost>
date: Sun Dec 13 17:41:48 2015 +0000
description:
Note the sensor number in the error output. Useful for drivers adding
multiple sensors.
diffstat:
sys/dev/sysmon/sysmon_envsys.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r a66808f9a296 -r c7bc345d5159 sys/dev/sysmon/sysmon_envsys.c
--- a/sys/dev/sysmon/sysmon_envsys.c Sun Dec 13 17:39:19 2015 +0000
+++ b/sys/dev/sysmon/sysmon_envsys.c Sun Dec 13 17:41:48 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys.c,v 1.137 2015/04/25 23:40:09 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsys.c,v 1.138 2015/12/13 17:41:48 jdc Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.137 2015/04/25 23:40:09 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.138 2015/12/13 17:41:48 jdc Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -1656,8 +1656,8 @@
sdt = sme_find_table_entry(SME_DESC_STATES, edata->state);
if (sdt == NULL) {
- printf("sme_update_sensor_dictionary: can not update sensor "
- "state %d unknown\n", edata->state);
+ printf("sme_update_sensor_dictionary: cannot update sensor %d "
+ "state %d unknown\n", edata->sensor, edata->state);
return EINVAL;
}
Home |
Main Index |
Thread Index |
Old Index