[FL-2870] Printf function attributes (#1841)
* Furi strings: printf attribute * Logs: printf attribute * Plugins: adapt * Plugins: accommodate * Unit tests: accommodate Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -119,7 +119,11 @@ bool storage_file_open(
|
||||
furi_event_flag_free(event);
|
||||
|
||||
FURI_LOG_T(
|
||||
TAG, "File %p - %p open (%s)", (uint32_t)file - SRAM_BASE, file->file_id - SRAM_BASE, path);
|
||||
TAG,
|
||||
"File %p - %p open (%s)",
|
||||
(void*)((uint32_t)file - SRAM_BASE),
|
||||
(void*)(file->file_id - SRAM_BASE),
|
||||
path);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -132,7 +136,11 @@ bool storage_file_close(File* file) {
|
||||
S_API_MESSAGE(StorageCommandFileClose);
|
||||
S_API_EPILOGUE;
|
||||
|
||||
FURI_LOG_T(TAG, "File %p - %p closed", (uint32_t)file - SRAM_BASE, file->file_id - SRAM_BASE);
|
||||
FURI_LOG_T(
|
||||
TAG,
|
||||
"File %p - %p closed",
|
||||
(void*)((uint32_t)file - SRAM_BASE),
|
||||
(void*)(file->file_id - SRAM_BASE));
|
||||
file->type = FileTypeClosed;
|
||||
|
||||
return S_RETURN_BOOL;
|
||||
@@ -291,7 +299,11 @@ bool storage_dir_open(File* file, const char* path) {
|
||||
furi_event_flag_free(event);
|
||||
|
||||
FURI_LOG_T(
|
||||
TAG, "Dir %p - %p open (%s)", (uint32_t)file - SRAM_BASE, file->file_id - SRAM_BASE, path);
|
||||
TAG,
|
||||
"Dir %p - %p open (%s)",
|
||||
(void*)((uint32_t)file - SRAM_BASE),
|
||||
(void*)(file->file_id - SRAM_BASE),
|
||||
path);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -303,7 +315,11 @@ bool storage_dir_close(File* file) {
|
||||
S_API_MESSAGE(StorageCommandDirClose);
|
||||
S_API_EPILOGUE;
|
||||
|
||||
FURI_LOG_T(TAG, "Dir %p - %p closed", (uint32_t)file - SRAM_BASE, file->file_id - SRAM_BASE);
|
||||
FURI_LOG_T(
|
||||
TAG,
|
||||
"Dir %p - %p closed",
|
||||
(void*)((uint32_t)file - SRAM_BASE),
|
||||
(void*)(file->file_id - SRAM_BASE));
|
||||
|
||||
file->type = FileTypeClosed;
|
||||
|
||||
@@ -675,7 +691,7 @@ File* storage_file_alloc(Storage* storage) {
|
||||
file->type = FileTypeClosed;
|
||||
file->storage = storage;
|
||||
|
||||
FURI_LOG_T(TAG, "File/Dir %p alloc", (uint32_t)file - SRAM_BASE);
|
||||
FURI_LOG_T(TAG, "File/Dir %p alloc", (void*)((uint32_t)file - SRAM_BASE));
|
||||
|
||||
return file;
|
||||
}
|
||||
@@ -697,7 +713,7 @@ void storage_file_free(File* file) {
|
||||
}
|
||||
}
|
||||
|
||||
FURI_LOG_T(TAG, "File/Dir %p free", (uint32_t)file - SRAM_BASE);
|
||||
FURI_LOG_T(TAG, "File/Dir %p free", (void*)((uint32_t)file - SRAM_BASE));
|
||||
free(file);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user