From 48c6f266a81d17e5c9bddd23cc3c2618f9e247ff Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 29 Jul 2010 15:43:10 -0700 Subject: [PATCH] Dump cloud location of data items in debug output. --- bluesky/bluesky-private.h | 4 ++-- bluesky/debug.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bluesky/bluesky-private.h b/bluesky/bluesky-private.h index a265796..d6fcc1a 100644 --- a/bluesky/bluesky-private.h +++ b/bluesky/bluesky-private.h @@ -176,8 +176,8 @@ typedef enum { /* A record which tracks an object which has been written to a local log, * cached, locally, and/or written to the cloud. */ #define CLOUDLOG_JOURNAL 0x01 -#define CLOUDLOG_CACHE 0x02 -#define CLOUDLOG_CLOUD 0x04 +#define CLOUDLOG_CLOUD 0x02 +#define CLOUDLOG_CACHE 0x04 typedef struct { gint refcount; GMutex *lock; diff --git a/bluesky/debug.c b/bluesky/debug.c index 8d4d8d2..19cc5ef 100644 --- a/bluesky/debug.c +++ b/bluesky/debug.c @@ -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. */ -- 2.20.1