diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-07 14:07:55 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-07 14:08:46 +0100 |
commit | 477f35e78c81012bac4c724faf6ae1ef7f840398 (patch) | |
tree | fbf29f2aa951533d861e4e78ecfac46fa52ee7ad /src/osmo-bts-sysmo | |
parent | 187871e2ca2d422c0d9c526058eae4fbde77040c (diff) |
sysmo-bts: Use the z modifier to print the result of sizeof
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r-- | src/osmo-bts-sysmo/l1_fwd_main.c | 4 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/l1_transp_fwd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo-bts-sysmo/l1_fwd_main.c b/src/osmo-bts-sysmo/l1_fwd_main.c index 2f9bf217..23d2a39c 100644 --- a/src/osmo-bts-sysmo/l1_fwd_main.c +++ b/src/osmo-bts-sysmo/l1_fwd_main.c @@ -155,8 +155,8 @@ int main(int argc, char **argv) struct femtol1_hdl *fl1h; int rc, i; - printf("sizeof(GsmL1_Prim_t) = %lu\n", sizeof(GsmL1_Prim_t)); - printf("sizeof(FemtoBts_Prim_t) = %lu\n", sizeof(FemtoBts_Prim_t)); + printf("sizeof(GsmL1_Prim_t) = %zu\n", sizeof(GsmL1_Prim_t)); + printf("sizeof(FemtoBts_Prim_t) = %zu\n", sizeof(FemtoBts_Prim_t)); bts_log_init(NULL); diff --git a/src/osmo-bts-sysmo/l1_transp_fwd.c b/src/osmo-bts-sysmo/l1_transp_fwd.c index aad7f9b0..ad64e7bd 100644 --- a/src/osmo-bts-sysmo/l1_transp_fwd.c +++ b/src/osmo-bts-sysmo/l1_transp_fwd.c @@ -99,8 +99,8 @@ int l1if_transport_open(struct femtol1_hdl *fl1h) int rc, i; char *bts_host = getenv("L1FWD_BTS_HOST"); - printf("sizeof(GsmL1_Prim_t) = %lu\n", sizeof(GsmL1_Prim_t)); - printf("sizeof(FemtoBts_Prim_t) = %lu\n", sizeof(FemtoBts_Prim_t)); + printf("sizeof(GsmL1_Prim_t) = %zu\n", sizeof(GsmL1_Prim_t)); + printf("sizeof(FemtoBts_Prim_t) = %zu\n", sizeof(FemtoBts_Prim_t)); if (!bts_host) { fprintf(stderr, "You have to set the L1FWD_BTS_HOST environment variable\n"); |