thermferm/devices.c

changeset 348
ffc4b8aa824f
parent 347
0ab5c3fd7c77
child 351
d8c410c320db
--- a/thermferm/devices.c	Wed Apr 01 15:20:05 2015 +0200
+++ b/thermferm/devices.c	Wed Apr 01 15:56:04 2015 +0200
@@ -339,9 +339,9 @@
 			    }
 
 			    if ((write_w1(device->address, (char *)"output", output)) == 0) {
-			    	syslog(LOG_NOTICE, "DS2413 PIO%c value=%d", (device->subdevice == 0) ? 'A' : 'B', (value == 0) ? 0 : 1);
+			    	syslog(LOG_NOTICE, "DS2413 PIO%c value=%d (%s)", (device->subdevice == 0) ? 'A' : 'B', (value == 0) ? 0 : 1, device->comment);
 			    	if (debug)
-				    fprintf(stdout, "DS2413 PIO%c value=%d\n", (device->subdevice == 0) ? 'A' : 'B', (value == 0) ? 0 : 1);
+				    fprintf(stdout, "DS2413 PIO%c value=%d (%s)\n", (device->subdevice == 0) ? 'A' : 'B', (value == 0) ? 0 : 1, device->comment);
 				device->value = (value == 0) ? 0 : 1;
 				device->timestamp = time(NULL);
 			    }

mercurial