chiark / gitweb /
libvolume_id: gfs + gfs2 support
[elogind.git] / extras / volume_id / lib / linux_swap.c
index 0193648c9ef460c1d3c9e4439e6f185ed3ceba8e..3937f8ea467241bd59ea547fd2865fb2cb991c53 100644 (file)
@@ -26,7 +26,7 @@
 #include "libvolume_id.h"
 #include "util.h"
 
-struct swap_header_v1_2 {
+static struct swap_header_v1_2 {
        uint8_t         bootbits[1024];
        uint32_t        version;
        uint32_t        last_page;
@@ -42,7 +42,7 @@ int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off)
        const uint8_t *buf;
        unsigned int page;
 
-       dbg("probing at offset 0x%llx", (unsigned long long) off);
+       info("probing at offset 0x%llx", (unsigned long long) off);
 
        /* the swap signature is at the end of the PAGE_SIZE */
        for (page = 0x1000; page <= LARGEST_PAGESIZE; page <<= 1) {