~ubuntu-branches/ubuntu/oneiric/collectd/oneiric

« back to all changes in this revision

Viewing changes to src/sensors.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Harl
  • Date: 2008-06-17 10:35:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080617103551-9d0ym3zejc7agtt3
Tags: 4.4.1-1
* New upstream release.
  - Fixed another issue of the sensors plugin affecting some chip types
    (Closes: #468143).
  - Fixed creation of "vserver" graphs in collection.cgi (Closes: #475120).
  - Fixed a segfault when using libperl 5.10.
  - collectd now ships libiptc itself.
  New plugins:
  - Ascent server statistics: ascent
  - IPMI sensors information: ipmi
  - PowerDNS name server statistics: powerdns
  - incremental parsing of logfiles: tail
  - TeamSpeak2 server statistics: teamspeak2
  - detailed virtual memory statistics: vmem
* Disable "tcpconns" plugin by default (Closes: #478759).
* Reenabled iptables plugin on all architectures (Closes: #473435).
  - Added the plugin to collectd.conf.
  - Added /usr/share/doc/collectd/examples/iptables/.
  - Added build dependency on linux-libc-dev (>= 2.6.25-4) - that version is
    required because of #479899.
* New debconf template translations:
  - gl.po, thanks to Jacobo Tarrio (Closes: #482667).
* Added a work around for #474087 (broken openipmi .pc files) by forcing the
  inclusion of the ipmi plugin and manually specifying the dependencies.
* Updated standards-version to 3.8.0 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * collectd - src/sensors.c
3
 
 * Copyright (C) 2005-2007  Florian octo Forster
 
3
 * Copyright (C) 2005-2008  Florian octo Forster
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify it
6
6
 * under the terms of the GNU General Public License as published by the
189
189
        }
190
190
        else if (chip->bus == SENSORS_CHIP_NAME_BUS_DUMMY)
191
191
        {
192
 
                snprintf (buf, buf_size, "%s-%s-%04x",
 
192
                status = snprintf (buf, buf_size, "%s-%s-%04x",
193
193
                                chip->prefix,
194
194
                                chip->busname,
195
195
                                chip->addr);
196
196
        }
197
197
        else
198
198
        {
199
 
                snprintf (buf, buf_size, "%s-i2c-%d-%02x",
 
199
                status = snprintf (buf, buf_size, "%s-i2c-%d-%02x",
200
200
                                chip->prefix,
201
201
                                chip->bus,
202
202
                                chip->addr);