Dump cloud location of data items in debug output.
[bluesky.git] / bluesky / debug.c
index 8d4d8d2..19cc5ef 100644 (file)
@@ -42,9 +42,10 @@ static void cloudlog_dump(gpointer key, gpointer value, gpointer user_data)
     for (int i = 0; i < sizeof(BlueSkyCloudID); i++) {
         g_print("%02x", (uint8_t)(log->id.bytes[i]));
     }
-    g_print(": ty=%d inode=%"PRIu64" locs=%x log@(%d,%d)\n",
+    g_print(": ty=%d inode=%"PRIu64" locs=%x log@(%d,%d) cloud@(%d,%d,%d)\n",
             log->type, log->inum, log->location_flags,
-            log->log_seq, log->log_offset);
+            log->log_seq, log->log_offset, log->location.directory,
+            log->location.sequence, log->location.offset);
 }
 
 /* Dump a summary of filesystem state as it is cached in memory. */