mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Minor corrections to logging for sqlite3_win32_compact_heap().
FossilOrigin-Name: 71347d021bea90ad7e4cc0d3e54940ce29b9ea69
This commit is contained in:
@@ -1116,12 +1116,14 @@ int sqlite3_win32_compact_heap(LPUINT pnLargest){
|
||||
(void*)hHeap);
|
||||
rc = SQLITE_NOMEM;
|
||||
}else{
|
||||
sqlite3_log(SQLITE_NOMEM, "failed to HeapCompact (%lu), heap=%p",
|
||||
sqlite3_log(SQLITE_ERROR, "failed to HeapCompact (%lu), heap=%p",
|
||||
osGetLastError(), (void*)hHeap);
|
||||
rc = SQLITE_ERROR;
|
||||
}
|
||||
}
|
||||
#else
|
||||
sqlite3_log(SQLITE_NOTFOUND, "failed to HeapCompact, heap=%p",
|
||||
(void*)hHeap);
|
||||
rc = SQLITE_NOTFOUND;
|
||||
#endif
|
||||
if( pnLargest ) *pnLargest = nLargest;
|
||||
|
||||
Reference in New Issue
Block a user