summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-08-17 16:10:32 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-08-17 16:10:32 -0700
commita961dcbf0dabc91c0c6f9fde6195fe8209574d48 (patch)
tree1bb7118d2535c016f4cdeee1d5badeafd660d2c9
parentfc046d4d08f686bcdb91c015b5b35c35e2c205a0 (diff)
cdrom_id: change err() to info() to help with debugging problems
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--extras/cdrom_id/cdrom_id.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c
index c561112d30..941a2facfe 100644
--- 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) {
- err("no node specified");
+ info("no node specified");
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) {
- err("CDROM_GET_CABILITY failed for '%s'", node);
+ info("CDROM_GET_CABILITY failed for '%s'", node);
rc = 3;
goto close;
}