Permalink
Browse files

Use %@ when logging NSString instead of %s

  • Loading branch information...
1 parent 2b84187 commit 5f5c3dd41df9e2ac6070b909db3a17a58abe600e @tru tru committed with Grzegorz Adam Hankiewicz Mar 9, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 EGODatabase.m
View
@@ -194,11 +194,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);

0 comments on commit 5f5c3dd

Please sign in to comment.