X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fhddtemp.c;h=1047077d2e098d5c692d22bda0241fe0381eb66d;hb=1ac298349bc9924e4d07dc61f6bef46b9ab0a46c;hp=0432de73adc825c9ac161bc3ea5dc5a5800f68a9;hpb=e6fc1600ee7bcde75c95db9b1f617caf78fc4c6a;p=collectd.git diff --git a/src/hddtemp.c b/src/hddtemp.c index 0432de73..1047077d 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -144,7 +144,7 @@ static int hddtemp_query_daemon (char *buffer, int buffer_size) if (connect (fd, (struct sockaddr *) ai_ptr->ai_addr, ai_ptr->ai_addrlen)) { char errbuf[1024]; - DEBUG ("hddtemp: connect (%s, %s): %s", host, port, + INFO ("hddtemp: connect (%s, %s): %s", host, port, sstrerror (errno, errbuf, sizeof (errbuf))); close (fd); fd = -1; @@ -304,6 +304,7 @@ static int hddtemp_init (void) case SCSI_DISK5_MAJOR: case SCSI_DISK6_MAJOR: case SCSI_DISK7_MAJOR: +#ifdef SCSI_DISK8_MAJOR case SCSI_DISK8_MAJOR: case SCSI_DISK9_MAJOR: case SCSI_DISK10_MAJOR: @@ -312,6 +313,7 @@ static int hddtemp_init (void) case SCSI_DISK13_MAJOR: case SCSI_DISK14_MAJOR: case SCSI_DISK15_MAJOR: +#endif /* SCSI_DISK8_MAJOR */ /* SCSI disks minors are multiples of 16. * Keep only those. */ if (minor % 16)