chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ed3edf
)
ata_id: don't log error for libata devices on older kernels
author
Matthias Schwarzott
<zzam@gentoo.org>
Sat, 28 Apr 2007 22:08:30 +0000
(
00:08
+0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Sat, 28 Apr 2007 22:08:30 +0000
(
00:08
+0200)
extras/ata_id/ata_id.c
patch
|
blob
|
history
diff --git
a/extras/ata_id/ata_id.c
b/extras/ata_id/ata_id.c
index aedebff711a2494a52f3273d968dea00ccd13e3a..ddd4151257142a91cbbfbc040b755522f3609169 100644
(file)
--- 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;
}