This repository was archived by the owner on Jul 8, 2022. It is now read-only.
Commit 691dfbf
committed
log4tango: Fix snprintf test
The snprintf test was missing the declaration of the exit function.
This never found a working system snprintf implementation.
The fallout from this bug is that the LOG_* macros are not working as
e.g. TangoTest returns
1453759720 [140389277255488] INFO tangotest/tt/1 TangoTest::init_device::init device
Ready to accept request
1453759720 [140389141108480] INFO tangotest/tt/1 TangoTest::always_executed_hook() TangoTest/tt/1
1453759720 [140389141108480] INFO tangotest/tt/1 TangoTest::always_executed_hook() TangoTest/tt/1
1453759720 [140389141108480] INFO tangotest/tt/1 TangoTest::always_executed_hook() TangoTest/tt/1
1453759720 [140389141108480] INFO tangotest/tt/1 TangoTest::always_executed_hook() TangoTest/tt/1
instead of
1453842671 [139686148966208] INFO tangotest/tt/1 TangoTest::init_device::init device TangoTest/tt/1
1453842671 [139686148966208] DEBUG tangotest/tt/1 sleep_period=2000
1453842671 [139686148966208] DEBUG tangotest/tt/1 mthreaded_impl=0
1453842671 [139686148966208] DEBUG tangotest/tt/1 uShort_image_ro_size=251
Ready to accept request
1453842671 [139685942777600] INFO tangotest/tt/1 TangoTest::always_executed_hook() TangoTest/tt/1
from the lines
TangoTest.cpp: LOG_INFO(("TangoTest::init_device::init device %s", device_name.c_str()));
TangoTest.cpp: LOG_DEBUG(("In read_attr_hardware for %d attributes",attr_list.size()));
Original report from the author of this commit at [1].
[1]: https://www.tango-controls.org/community/forum/c/development/c/log_-macros-not-working/1 parent 1ecbd77 commit 691dfbf
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments