From 28cdb9e104e03680d61c3e6dd654d1beff51427d Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Fri, 24 Jun 2011 15:06:48 -0700 Subject: Fix settings restore Also correct the debug-mode logging of error locations in backup data. Bug 4914182 Change-Id: Ie7dda0192afa819e42490b7ffd2d3db6f11968f6 --- libs/utils/BackupData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/utils/BackupData.cpp') diff --git a/libs/utils/BackupData.cpp b/libs/utils/BackupData.cpp index f963058fab6d..879126393366 100644 --- a/libs/utils/BackupData.cpp +++ b/libs/utils/BackupData.cpp @@ -285,7 +285,8 @@ BackupDataReader::ReadNextHeader(bool* done, int* type) break; } default: - LOGD("Chunk header at %d has invalid type: 0x%08x", (int)m_pos, (int)m_header.type); + LOGD("Chunk header at %d has invalid type: 0x%08x", + (int)(m_pos - sizeof(m_header)), (int)m_header.type); m_status = EINVAL; } -- cgit v1.2.3-59-g8ed1b