chiark / gitweb /
fix typo in cdrom_id syslog
authorKay Sievers <kay.sievers@suse.de>
Thu, 18 Aug 2005 02:54:59 +0000 (04:54 +0200)
committerKay Sievers <kay.sievers@suse.de>
Thu, 18 Aug 2005 02:54:59 +0000 (04:54 +0200)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
extras/cdrom_id/cdrom_id.c

index 941a2fa..091bf91 100644 (file)
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
 
        result = ioctl(fd, CDROM_GET_CAPABILITY, NULL);
        if (result < 0) {
-               info("CDROM_GET_CABILITY failed for '%s'", node);
+               info("CDROM_GET_CAPABILITY failed for '%s'", node);
                rc = 3;
                goto close;
        }
@@ -147,8 +147,6 @@ int main(int argc, char *argv[])
 
        if (result & CDC_RAM)
                printf("ID_CDROM_RAM=1\n");
-       goto close;
-
 close:
        close(fd);
 exit: