Skip to content

Commit 8c6419a

Browse files
committed
Render instance ID as unsigned in the logger
Change-Id: Id210e18a93000221c2e55f8e7098fcccfa56533a Reviewed-on: http://review.couchbase.org/95124 Tested-by: Build Bot <[email protected]> Reviewed-by: Sergey Avseyev <[email protected]>
1 parent 51ebb11 commit 8c6419a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/couchbase/log_formatter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void pcbc_log_formatter(char *buf, int buf_size, const char *severity, const cha
6666
}
6767
}
6868
if (is_lcb) {
69-
snprintf(buf, buf_size, "[cb,%s] (%s L:%d I:%d) %s", severity, subsystem, srcline, instance_id, msg);
69+
snprintf(buf, buf_size, "[cb,%s] (%s L:%d I:%u) %s", severity, subsystem, srcline, (unsigned int)instance_id, msg);
7070
} else if (instance_ptr) {
7171
snprintf(buf, buf_size, "[cb,%s] (%s L:%d) %s. I=%p", severity, subsystem, srcline, msg, instance_ptr);
7272
} else {

0 commit comments

Comments
 (0)