From 68f9447744609177669444aae40eafc613fd18e1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 1 Dec 2012 12:51:34 +0100 Subject: sms: Print 'network' or 'mobile' when creating the SMC/SMR --- src/gsm/gsm0411_smc.c | 3 ++- src/gsm/gsm0411_smr.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3