diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-04-29 00:08:30 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-04-29 00:08:30 +0200 |
commit | cfdea0f647720222bb2fde67ab0a083167e9b2b4 (patch) | |
tree | 5daf6bce95142ca381037c633efcb7d97580f0ca /extras/ata_id/ata_id.c | |
parent | 6ed3edfb6901d76d0ad91e992aee41e42e816516 (diff) |
ata_id: don't log error for libata devices on older kernels
Diffstat (limited to 'extras/ata_id/ata_id.c')
-rw-r--r-- | extras/ata_id/ata_id.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c index aedebff711..ddd4151257 100644 --- a/extras/ata_id/ata_id.c +++ b/extras/ata_id/ata_id.c @@ -120,8 +120,13 @@ int main(int argc, char *argv[]) } if (ioctl(fd, HDIO_GET_IDENTITY, &id)) { - err("HDIO_GET_IDENTITY failed for '%s'", node); - rc = 3; + if (errno == ENOTTY) { + info("HDIO_GET_IDENTITY unsupported for '%s'", node); + rc = 2; + } else { + err("HDIO_GET_IDENTITY failed for '%s'", node); + rc = 3; + } goto close; } |