[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:
		| @@ -92,14 +92,14 @@ static void infrared_find_vacant_remote_name(FuriString* name, const char* path) | ||||
|         uint32_t i = 1; | ||||
|         do { | ||||
|             furi_string_printf( | ||||
|                 path_temp, "%s%u%s", furi_string_get_cstr(base_path), ++i, INFRARED_APP_EXTENSION); | ||||
|                 path_temp, "%s%lu%s", furi_string_get_cstr(base_path), ++i, INFRARED_APP_EXTENSION); | ||||
|             status = storage_common_stat(storage, furi_string_get_cstr(path_temp), NULL); | ||||
|         } while(status == FSE_OK); | ||||
|  | ||||
|         furi_string_free(path_temp); | ||||
|  | ||||
|         if(status == FSE_NOT_EXIST) { | ||||
|             furi_string_cat_printf(name, "%u", i); | ||||
|             furi_string_cat_printf(name, "%lu", i); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -61,7 +61,7 @@ static bool infrared_signal_is_raw_valid(InfraredRawSignal* raw) { | ||||
|     if((raw->frequency > INFRARED_MAX_FREQUENCY) || (raw->frequency < INFRARED_MIN_FREQUENCY)) { | ||||
|         FURI_LOG_E( | ||||
|             TAG, | ||||
|             "Frequency is out of range (%lX - %lX): %lX", | ||||
|             "Frequency is out of range (%X - %X): %lX", | ||||
|             INFRARED_MIN_FREQUENCY, | ||||
|             INFRARED_MAX_FREQUENCY, | ||||
|             raw->frequency); | ||||
| @@ -74,7 +74,7 @@ static bool infrared_signal_is_raw_valid(InfraredRawSignal* raw) { | ||||
|     } else if((raw->timings_size <= 0) || (raw->timings_size > MAX_TIMINGS_AMOUNT)) { | ||||
|         FURI_LOG_E( | ||||
|             TAG, | ||||
|             "Timings amount is out of range (0 - %lX): %lX", | ||||
|             "Timings amount is out of range (0 - %X): %X", | ||||
|             MAX_TIMINGS_AMOUNT, | ||||
|             raw->timings_size); | ||||
|         return false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user