chiark / gitweb /
libvolume_id: recognize swap partitions with a tuxonice hibernate image
[elogind.git] / extras / volume_id / lib / highpoint.c
index e441edb776fd3e7381da38d38c376295ced02969..06290151179667e65cfe755bd85016e95aad474a 100644 (file)
@@ -43,13 +43,13 @@ struct hpt45x_meta {
 #define HPT45X_MAGIC_BAD               0x5a7816fd
 
 
-int volume_id_probe_highpoint_37x_raid(struct volume_id *id, uint64_t off)
+int volume_id_probe_highpoint_37x_raid(struct volume_id *id, uint64_t off, uint64_t size)
 {
        const uint8_t *buf;
        struct hpt37x_meta *hpt;
        uint32_t magic;
 
-       info("probing at offset 0x%llx", (unsigned long long) off);
+       info("probing at offset 0x%llx\n", (unsigned long long) off);
 
        buf = volume_id_get_buffer(id, off + HPT37X_CONFIG_OFF, 0x200);
        if (buf == NULL)
@@ -73,7 +73,7 @@ int volume_id_probe_highpoint_45x_raid(struct volume_id *id, uint64_t off, uint6
        uint64_t meta_off;
        uint32_t magic;
 
-       dbg("probing at offset 0x%llx, size 0x%llx",
+       dbg("probing at offset 0x%llx, size 0x%llx\n",
            (unsigned long long) off, (unsigned long long) size);
 
        if (size < 0x10000)