Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 616f841

Browse files
author
github-actions[bot]
committed
1 parent 828eb6a commit 616f841

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/cloud/aws_iot_integration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ int cloud_wrap_init(cloud_wrap_evt_handler_t event_handler)
332332
LOG_DBG(" The Asset Tracker v2 has started");
333333
LOG_DBG(" Version: %s",
334334
CONFIG_ASSET_TRACKER_V2_APP_VERSION);
335-
LOG_DBG(" Client ID: %s", log_strdup(client_id_buf));
335+
LOG_DBG(" Client ID: %s", client_id_buf);
336336
LOG_DBG(" Cloud: %s", "AWS IoT");
337337
LOG_DBG(" Endpoint: %s",
338338
CONFIG_AWS_IOT_BROKER_HOST_NAME);

src/cloud/azure_iot_hub_integration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ int cloud_wrap_init(cloud_wrap_evt_handler_t event_handler)
314314
LOG_DBG("********************************************");
315315
LOG_DBG(" The Asset Tracker v2 has started");
316316
LOG_DBG(" Version: %s", CONFIG_ASSET_TRACKER_V2_APP_VERSION);
317-
LOG_DBG(" Client ID: %s", log_strdup(client_id_buf));
317+
LOG_DBG(" Client ID: %s", client_id_buf);
318318
LOG_DBG(" Cloud: %s", "Azure IoT Hub");
319319
#if defined(CONFIG_AZURE_IOT_HUB_DPS)
320320
LOG_DBG(" DPS endpoint: %s", CONFIG_AZURE_IOT_HUB_DPS_HOSTNAME);

src/cloud/lwm2m_integration/lwm2m_integration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ int cloud_wrap_init(cloud_wrap_evt_handler_t event_handler)
288288
return -ERANGE;
289289
}
290290

291-
LOG_DBG("LwM2M endpoint name: %s", log_strdup(endpoint_name));
291+
LOG_DBG("LwM2M endpoint name: %s", endpoint_name);
292292

293293
if (IS_ENABLED(CONFIG_LWM2M_INTEGRATION_FLUSH_SESSION_CACHE)) {
294294
int fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_DTLS_1_2);

src/events/app_module_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static void log_event(const struct app_event_header *aeh)
7777
}
7878

7979
APP_EVENT_MANAGER_LOG(aeh, "%s - Requested data types (%s)",
80-
get_evt_type_str(event->type), log_strdup(data_types));
80+
get_evt_type_str(event->type), data_types);
8181
} else {
8282
APP_EVENT_MANAGER_LOG(aeh, "%s", get_evt_type_str(event->type));
8383
}

src/ext_sensors/ext_sensors_bsec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int settings_set(const char *key, size_t len_rd, settings_read_cb read_cb
9595
return -EINVAL;
9696
}
9797

98-
LOG_DBG("Settings key: %s, size: %d", log_strdup(key), len_rd);
98+
LOG_DBG("Settings key: %s, size: %d", key, len_rd);
9999

100100
if (!strncmp(key, SETTINGS_KEY_STATE, strlen(SETTINGS_KEY_STATE))) {
101101
if (len_rd > sizeof(ctx.state_buffer)) {

src/modules/modem_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static void lte_evt_handler(const struct lte_lc_evt *const evt)
210210
"eDRX parameter update: eDRX: %.2f, PTW: %.2f",
211211
evt->edrx_cfg.edrx, evt->edrx_cfg.ptw);
212212
if (len > 0) {
213-
LOG_DBG("%s", log_strdup(log_buf));
213+
LOG_DBG("%s", log_buf);
214214
}
215215

216216
send_edrx_update(evt->edrx_cfg.edrx, evt->edrx_cfg.ptw);

src/modules/modules_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ int module_get_next_msg(struct module_data *module, void *msg)
5656
event->log_event_func_dep(&evt_proto->header, buf, sizeof(buf));
5757
LOG_DBG("%s module: Dequeued %s",
5858
module->name,
59-
log_strdup(buf));
59+
buf);
6060
}
6161
#endif
6262
}
@@ -97,7 +97,7 @@ int module_enqueue_msg(struct module_data *module, void *msg)
9797
event->log_event_func_dep(&evt_proto->header, buf, sizeof(buf));
9898
LOG_DBG("%s module: Dequeued %s",
9999
module->name,
100-
log_strdup(buf));
100+
buf);
101101
}
102102
#endif
103103
}

0 commit comments

Comments
 (0)