X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsensors.c;h=0968e311fb170c63ba8c01727ed8ea7e423bf733;hb=250dc17bfb3c5488b789347f1f570913701d31ca;hp=a96e04ccf7f66ee2dbc4823a1a8a449db44d32d9;hpb=3bb58d8d87a0db2b3177cbc52c2078c5543e7944;p=collectd.git diff --git a/src/sensors.c b/src/sensors.c index a96e04cc..0968e311 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -1,6 +1,6 @@ /** * collectd - src/sensors.c - * Copyright (C) 2005-2007 Florian octo Forster + * Copyright (C) 2005-2008 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -189,14 +189,14 @@ static int sensors_snprintf_chip_name (char *buf, size_t buf_size, } else if (chip->bus == SENSORS_CHIP_NAME_BUS_DUMMY) { - snprintf (buf, buf_size, "%s-%s-%04x", + status = snprintf (buf, buf_size, "%s-%s-%04x", chip->prefix, chip->busname, chip->addr); } else { - snprintf (buf, buf_size, "%s-i2c-%d-%02x", + status = snprintf (buf, buf_size, "%s-i2c-%d-%02x", chip->prefix, chip->bus, chip->addr); @@ -580,7 +580,7 @@ static int sensors_read (void) type = "fanspeed"; else if (fl->feature->type == SENSORS_FEATURE_TEMP) - type = "input"; + type = "temperature"; else continue;