Navigation Menu

Skip to content

Commit

Permalink
Use %@ when logging NSString instead of %s
Browse files Browse the repository at this point in the history
  • Loading branch information
tru committed Mar 9, 2011
1 parent dbd9789 commit 7ffecac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EGODatabase.m
Expand Up @@ -193,11 +193,11 @@ - (BOOL)executeUpdate:(NSString*)sql parameters:(NSArray*)parameters {
} else if (SQLITE_DONE == returnCode || SQLITE_ROW == returnCode) {

} else if (SQLITE_ERROR == returnCode) {
EGODBDebugLog(@"[EGODatabase] sqlite3_step Failed: (%d: %s) SQLITE_ERROR\n%@\n\n", returnCode, [self lastErrorMessage], sql);
EGODBDebugLog(@"[EGODatabase] sqlite3_step Failed: (%d: %@) SQLITE_ERROR\n%@\n\n", returnCode, [self lastErrorMessage], sql);
} else if (SQLITE_MISUSE == returnCode) {
EGODBDebugLog(@"[EGODatabase] sqlite3_step Failed: (%d: %s) SQLITE_MISUSE\n%@\n\n", returnCode, [self lastErrorMessage], sql);
EGODBDebugLog(@"[EGODatabase] sqlite3_step Failed: (%d: %@) SQLITE_MISUSE\n%@\n\n", returnCode, [self lastErrorMessage], sql);
} else {
EGODBDebugLog(@"[EGODatabase] sqlite3_step Failed: (%d: %s) UNKNOWN_ERROR\n%@\n\n", returnCode, [self lastErrorMessage], sql);
EGODBDebugLog(@"[EGODatabase] sqlite3_step Failed: (%d: %@) UNKNOWN_ERROR\n%@\n\n", returnCode, [self lastErrorMessage], sql);
}

returnCode = sqlite3_finalize(statement);
Expand Down

0 comments on commit 7ffecac

Please sign in to comment.