chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo in cdrom_id syslog
[elogind.git]
/
extras
/
cdrom_id
/
cdrom_id.c
diff --git
a/extras/cdrom_id/cdrom_id.c
b/extras/cdrom_id/cdrom_id.c
index c561112d3063f72d697e2aa2d8d7415b7a959a50..091bf91559102a732dd65603bbffac97c1cb3604 100644
(file)
--- a/
extras/cdrom_id/cdrom_id.c
+++ b/
extras/cdrom_id/cdrom_id.c
@@
-107,21
+107,21
@@
int main(int argc, char *argv[])
node = arg;
}
if (!node) {
node = arg;
}
if (!node) {
-
err
("no node specified");
+
info
("no node specified");
rc = 1;
goto exit;
}
fd = open(node, O_RDONLY|O_NONBLOCK);
if (fd < 0) {
rc = 1;
goto exit;
}
fd = open(node, O_RDONLY|O_NONBLOCK);
if (fd < 0) {
-
err
("unable to open '%s'", node);
+
info
("unable to open '%s'", node);
rc = 1;
goto exit;
}
result = ioctl(fd, CDROM_GET_CAPABILITY, NULL);
if (result < 0) {
rc = 1;
goto exit;
}
result = ioctl(fd, CDROM_GET_CAPABILITY, NULL);
if (result < 0) {
-
err("CDROM_GET_C
ABILITY failed for '%s'", node);
+
info("CDROM_GET_CAP
ABILITY failed for '%s'", node);
rc = 3;
goto close;
}
rc = 3;
goto close;
}
@@
-147,8
+147,6
@@
int main(int argc, char *argv[])
if (result & CDC_RAM)
printf("ID_CDROM_RAM=1\n");
if (result & CDC_RAM)
printf("ID_CDROM_RAM=1\n");
- goto close;
-
close:
close(fd);
exit:
close:
close(fd);
exit: