diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-01 12:51:34 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-06 11:58:33 +0100 |
commit | 68f9447744609177669444aae40eafc613fd18e1 (patch) | |
tree | 94b9de3a841bc35d929b5b4ff20c9d876467bd8d /src | |
parent | c1e9be95c20fb0517efcd5746e38fc95b4d9da14 (diff) |
sms: Print 'network' or 'mobile' when creating the SMC/SMR
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm/gsm0411_smc.c | 3 | ||||
-rw-r--r-- | src/gsm/gsm0411_smr.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gsm/gsm0411_smc.c b/src/gsm/gsm0411_smc.c index ff68c089..297850e3 100644 --- a/src/gsm/gsm0411_smc.c +++ b/src/gsm/gsm0411_smc.c @@ -83,7 +83,8 @@ void gsm411_smc_init(struct gsm411_smc_inst *inst, uint64_t id, int network, inst->mm_send = mm_send; LOGP(DLSMS, LOGL_INFO, - SMC_LOG_STR "instance created\n", inst->id); + SMC_LOG_STR "instance created for %s\n", + inst->id, inst->network ? "network" : "mobile"); } /* clear instance */ diff --git a/src/gsm/gsm0411_smr.c b/src/gsm/gsm0411_smr.c index c6c85e1e..79d8111d 100644 --- a/src/gsm/gsm0411_smr.c +++ b/src/gsm/gsm0411_smr.c @@ -81,8 +81,8 @@ void gsm411_smr_init(struct gsm411_smr_inst *inst, uint64_t id, int network, inst->rp_timer.cb = rp_timer_expired; LOGP(DLSMS, LOGL_INFO, - SMR_LOG_STR "instance created for %d\n", - inst->id, inst->network); + SMR_LOG_STR "instance created for %s.\n", + inst->id, inst->network ? "network" : "mobile"); } /* clear instance */ |