summaryrefslogtreecommitdiff
path: root/extras/ata_id
diff options
context:
space:
mode:
Diffstat (limited to 'extras/ata_id')
-rw-r--r--extras/ata_id/ata_id.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index f94cdc0fd3..6d3c2330b4 100644
--- a/extras/ata_id/ata_id.c
+++ b/extras/ata_id/ata_id.c
@@ -126,24 +126,24 @@ int main(int argc, char *argv[])
node = argv[optind];
if (node == NULL) {
- err("no node specified");
+ err("no node specified\n");
rc = 1;
goto exit;
}
fd = open(node, O_RDONLY|O_NONBLOCK);
if (fd < 0) {
- err("unable to open '%s'", node);
+ err("unable to open '%s'\n", node);
rc = 1;
goto exit;
}
if (ioctl(fd, HDIO_GET_IDENTITY, &id)) {
if (errno == ENOTTY) {
- info("HDIO_GET_IDENTITY unsupported for '%s'", node);
+ info("HDIO_GET_IDENTITY unsupported for '%s'\n", node);
rc = 2;
} else {
- err("HDIO_GET_IDENTITY failed for '%s'", node);
+ err("HDIO_GET_IDENTITY failed for '%s'\n", node);
rc = 3;
}
goto close;