Skip to content

Commit ab0c9b8

Browse files
maass-hamburgdanieldegrasse
authored andcommitted
samples: add CONFIG_LOG_TIMESTAMP_USE_REALTIME
add CONFIG_LOG_TIMESTAMP_USE_REALTIME to a sample, so building with it is tested. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent ffebf73 commit ab0c9b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

samples/net/cloud/aws_iot_mqtt/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ CONFIG_NET_CONFIG_SNTP_INIT_SERVER="0.pool.ntp.org"
4444

4545
# Logging
4646
CONFIG_LOG=y
47+
CONFIG_LOG_TIMESTAMP_USE_REALTIME=y
48+
CONFIG_POSIX_C_LANG_SUPPORT_R=y
4749

4850
# Network buffers
4951
CONFIG_NET_PKT_RX_COUNT=32

samples/posix/gettimeofday/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
3030

3131
# Network debug config
3232
CONFIG_NET_LOG=y
33+
34+
# Use realtime for log timestamps
35+
CONFIG_LOG_TIMESTAMP_USE_REALTIME=y
36+
CONFIG_POSIX_C_LANG_SUPPORT_R=y

0 commit comments

Comments
 (0)