From 4a1efd664b08c96952d987ab8d7b5fd42c0a5526 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 21 Jun 2010 15:47:06 -0500 Subject: [PATCH] ubik: Do not hide ReplayLog errors For some reason, the ReplayLog code was printing encountered errors in the replay log as debug messages. Print them out as regular log messages instead, since these are errors that at least warrant visibility, if not more action. Change-Id: Ifba22278e2f5f33010b87eebfc484ccd3745f916 Reviewed-on: http://gerrit.openafs.org/2225 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/ubik/recovery.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ubik/recovery.c b/src/ubik/recovery.c index e9b3b9aefd..0e9e8507b4 100644 --- a/src/ubik/recovery.c +++ b/src/ubik/recovery.c @@ -253,8 +253,8 @@ ReplayLog(register struct ubik_dbase *adbase) /* otherwise, skip over the data bytes, too */ tpos += ntohl(buffer[2]) + 3 * sizeof(afs_int32); } else { - ubik_dprint("corrupt log opcode (%d) at position %d\n", opcode, - tpos); + ubik_print("corrupt log opcode (%d) at position %d\n", opcode, + tpos); break; /* corrupt log! */ } } @@ -341,8 +341,8 @@ ReplayLog(register struct ubik_dbase *adbase) len -= thisSize; } } else { - ubik_dprint("corrupt log opcode (%d) at position %d\n", - opcode, tpos); + ubik_print("corrupt log opcode (%d) at position %d\n", + opcode, tpos); break; /* corrupt log! */ } } @@ -352,7 +352,7 @@ ReplayLog(register struct ubik_dbase *adbase) if (code) return code; } else { - ubik_dprint("Log read error on pass 2\n"); + ubik_print("Log read error on pass 2\n"); return UBADLOG; } }