Hoernchen has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/30691 )


Change subject: bitgen test: fix concat macro
......................................................................

bitgen test: fix concat macro

..compilers might not like concatenating "nothing", and it looks weird.

Change-Id: Ibcd49a5c5c4f4fd0406fa1697edfd59307eac6f7
---
M tests/bitgen/bitgen_test.c
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/91/30691/1

diff --git a/tests/bitgen/bitgen_test.c b/tests/bitgen/bitgen_test.c
index 8657bbe..bd47291 100644
--- a/tests/bitgen/bitgen_test.c
+++ b/tests/bitgen/bitgen_test.c
@@ -14,17 +14,17 @@
                        for (at_idx = 0; at_idx < len; at_idx++) { \
                                uint##SIZE##_t read_val = 0; \
                                memset(buf, 0, sizeof(buf)); \
-                               osmo_store##SIZE####BE_LE##_ext(val, 
&buf[at_idx], len); \
+                               osmo_store##SIZE##BE_LE##_ext(val, 
&buf[at_idx], len); \
                                printf("osmo_store" #SIZE #BE_LE "_ext(0x%" 
PRIx##SIZE ", &buf[%d], %d) = %s\n", \
                                       val, \
                                       at_idx, len, osmo_hexdump(buf, 
sizeof(buf))); \
                                \
-                               read_val = 
osmo_load##SIZE####BE_LE##_ext(&buf[at_idx], len); \
+                               read_val = 
osmo_load##SIZE##BE_LE##_ext(&buf[at_idx], len); \
                                printf("osmo_load" #SIZE #BE_LE "_ext(&buf[%d], 
%d) = 0x%" PRIx##SIZE "\n", \
                                       at_idx, len, read_val); \
                                \
                                if (!strcmp(#BE_LE, "be")) { \
-                                       read_val = 
osmo_load##SIZE####BE_LE##_ext_2(&buf[at_idx], len); \
+                                       read_val = 
osmo_load##SIZE##BE_LE##_ext_2(&buf[at_idx], len); \
                                        printf("osmo_load" #SIZE #BE_LE 
"_ext_2(&buf[%d], %d) = 0x%" PRIx##SIZE "\n", \
                                               at_idx, len, read_val); \
                                } \

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/30691
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ibcd49a5c5c4f4fd0406fa1697edfd59307eac6f7
Gerrit-Change-Number: 30691
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ew...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to