chiark / gitweb /
libvolume_id: add parameter 'size' to all probe functions
[elogind.git] / extras / volume_id / lib / linux_swap.c
index b63f1e6c002b622dc05f5366f20ec87039ef5d85..21cb2bce8c1ea30b824a9c466974c47fb8c5ac4a 100644 (file)
@@ -37,12 +37,12 @@ static struct swap_header_v1_2 {
 
 #define LARGEST_PAGESIZE                       0x4000
 
-int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off)
+int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off, uint64_t size)
 {
        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) {