mirror of
https://protopirate.net/ProtoPirate/ProtoPirate.git
synced 2026-10-23 16:02:21 +00:00
RAM: Make Debug Logs Smaller
This commit is contained in:
1 parent
78aeb859a8
commit
5dfd27b7b4
22 files changed
+25
-25
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#include "protopirate_models.h"
|
||||
|
||||
#define TAG "ProtoPirateModels"
|
||||
#define TAG "PPModels"
|
||||
|
||||
#define PROTOPIRATE_MODELS_FILE APP_ASSETS_PATH("models.txt")
|
||||
|
||||
@@ -73,7 +73,7 @@ bool car_model_get_by_index(
|
||||
|
||||
//Read the Model Name.
|
||||
if(!flipper_format_read_string(ff, model_name_index, model_name)) {
|
||||
FURI_LOG_E("ProtoPirate", "Failed to read %s", model_name_index);
|
||||
FURI_LOG_E(TAG, "Failed to read %s", model_name_index);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ bool car_model_get_by_index(
|
||||
preset_data_size > 0) {
|
||||
if(preset_data_size >= 1024) {
|
||||
FURI_LOG_E(
|
||||
"ProtoPirate",
|
||||
TAG,
|
||||
"%s too large: %lu",
|
||||
preset_data_index,
|
||||
(unsigned long)preset_data_size);
|
||||
@@ -178,7 +178,7 @@ bool car_model_get_by_index(
|
||||
preset_data = malloc(preset_data_size);
|
||||
if(!preset_data) {
|
||||
FURI_LOG_E(
|
||||
"ProtoPirate",
|
||||
TAG,
|
||||
"Malloc failed: %s (%lu bytes)",
|
||||
preset_data_index,
|
||||
(unsigned long)preset_data_size);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define TAG "ProtoPirateProtocolPlugin"
|
||||
#define TAG "PPProtocolPlugin"
|
||||
#ifdef ENABLE_EMULATE_FEATURE
|
||||
#define PROTOPIRATE_TX_PLUGIN_PATH_MAX 160U
|
||||
#endif
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <lib/flipper_application/plugins/composite_resolver.h>
|
||||
#include <notification/notification_messages.h>
|
||||
|
||||
#define TAG "ProtoPiratePsaBfHost"
|
||||
#define TAG "PPPsaBfHost"
|
||||
#define PSA_BF_PLUGIN_PATH APP_ASSETS_PATH("plugins/pp_bf.fal")
|
||||
|
||||
static bool host_ensure_widget(void* app) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <furi.h>
|
||||
#include <string.h>
|
||||
|
||||
#define TAG "ProtoPirateRadio"
|
||||
#define TAG "PPRadio"
|
||||
|
||||
static void protopirate_radio_free_receiver(ProtoPirateApp* app) {
|
||||
furi_check(app);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <storage/storage.h>
|
||||
#include <string.h>
|
||||
|
||||
#define TAG "ProtoPirateMatch"
|
||||
#define TAG "PPMatch"
|
||||
#define CNT_MATCH_MARGIN 50
|
||||
|
||||
bool protopirate_saved_match_signal(
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "../defines.h"
|
||||
#include "../protocols/protocols_common.h"
|
||||
|
||||
#define TAG "ProtoPirateSettings"
|
||||
#define TAG "PPSettings"
|
||||
|
||||
#define SETTINGS_FILE_HEADER "ProtoPirate Settings"
|
||||
#define SETTINGS_FILE_VERSION 1
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <toolbox/stream/stream.h>
|
||||
#include <string.h>
|
||||
|
||||
#define TAG "ProtoPirateStorage"
|
||||
#define TAG "PPStorage"
|
||||
|
||||
bool protopirate_storage_init(void) {
|
||||
Storage* storage = furi_record_open(RECORD_STORAGE);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <loader/firmware_api/firmware_api.h>
|
||||
#include <notification/notification_messages.h>
|
||||
|
||||
#define TAG "ProtoPirateToolScene"
|
||||
#define TAG "PPToolScene"
|
||||
|
||||
#define SUB_DECODE_PLUGIN_PATH APP_ASSETS_PATH("plugins/pp_sub_decode.fal")
|
||||
#ifdef ENABLE_TIMING_TUNER_SCENE
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define TAG "ProtoPirateTxRx"
|
||||
#define TAG "PPTxRx"
|
||||
|
||||
void protopirate_rx_stack_teardown_for_registry_switch(ProtoPirateApp* app) {
|
||||
furi_check(app);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <furi.h>
|
||||
|
||||
#define TAG "ProtoPirateViews"
|
||||
#define TAG "PPViews"
|
||||
|
||||
bool protopirate_ensure_widget(ProtoPirateApp* app) {
|
||||
furi_check(app);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "../defines.h"
|
||||
|
||||
#define TAG "ProtoPirateCatalog"
|
||||
#define TAG "PPCatalog"
|
||||
|
||||
#define PROTOPIRATE_CC1101_REG_MDMCFG2 0x12U
|
||||
#define PROTOPIRATE_CC1101_MOD_FORMAT_MASK 0x70U
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#include "helpers/protopirate_radio.h"
|
||||
#include <string.h>
|
||||
|
||||
#define TAG "ProtoPirateApp"
|
||||
#define TAG "PPApp"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Plugin load / unload
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <furi.h>
|
||||
#include <string.h>
|
||||
|
||||
#define TAG "ProtoPirateEmulatePlugin"
|
||||
#define TAG "PPEmulatePlugin"
|
||||
|
||||
#define MIN_TX_TIME 666U
|
||||
#define MIN_TX_TIME_KIA_V3_V4 1600U
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
static const ProtoPirateSavedInfoSceneHostApi* g_saved_info_scene_host_api = NULL;
|
||||
|
||||
#define TAG "ProtoPirateSavedInfoPlugin"
|
||||
#define TAG "PPSavedInfoPlugin"
|
||||
|
||||
#define STATE_EMULATE 0
|
||||
#define STATE_BF 1
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <lib/flipper_application/plugins/plugin_manager.h>
|
||||
#include <lib/flipper_application/plugins/composite_resolver.h>
|
||||
|
||||
#define TAG "ProtoPirateSceneEmulate"
|
||||
#define TAG "PPSceneEmulate"
|
||||
|
||||
#define EMULATE_PLUGIN_PATH APP_ASSETS_PATH("plugins/pp_emulate.fal")
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "../protopirate_app_i.h"
|
||||
#include "proto_pirate_icons.h"
|
||||
|
||||
#define TAG "ProtoPirateNeedSaving"
|
||||
#define TAG "PPNeedSaving"
|
||||
|
||||
static void
|
||||
protopirate_scene_need_saving_callback(GuiButtonType result, InputType type, void* context) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <stdio.h>
|
||||
#include "proto_pirate_icons.h"
|
||||
|
||||
#define TAG "ProtoPirateSceneRx"
|
||||
#define TAG "PPSceneRx"
|
||||
|
||||
#define DEFERRED_STORAGE_TIME 1000
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "proto_pirate_icons.h"
|
||||
#include <storage/storage.h>
|
||||
|
||||
#define TAG "ProtoPirateReceiverInfo"
|
||||
#define TAG "PPReceiverInfo"
|
||||
|
||||
#define STATE_EMULATE 0
|
||||
#define STATE_BF 1
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "proto_pirate_icons.h"
|
||||
|
||||
#define TAG "ProtoPirateSceneSaved"
|
||||
#define TAG "PPSceneSaved"
|
||||
|
||||
void protopirate_scene_saved_on_enter(void* context) {
|
||||
furi_check(context);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "proto_pirate_icons.h"
|
||||
|
||||
#define TAG "ProtoPirateSceneStart"
|
||||
#define TAG "PPSceneStart"
|
||||
|
||||
typedef enum {
|
||||
SubmenuIndexProtoPirateReceiver,
|
||||
|
||||
@@ -41,7 +41,7 @@ void protopirate_scene_sub_decode_on_exit(void* context) {
|
||||
#include "proto_pirate_icons.h"
|
||||
#endif
|
||||
|
||||
#define TAG "ProtoPirateSubDecode"
|
||||
#define TAG "PPSubDecode"
|
||||
|
||||
static const ProtoPirateToolSceneHostApi* g_tool_scene_host_api = NULL;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ void protopirate_scene_timing_tuner_on_exit(void* context) {
|
||||
#include <gui/elements.h>
|
||||
#include <math.h>
|
||||
|
||||
#define TAG "ProtoPirateTimingTuner"
|
||||
#define TAG "PPTimingTuner"
|
||||
|
||||
static const ProtoPirateToolSceneHostApi* g_tool_scene_host_api = NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user