sms: Print 'network' or 'mobile' when creating the SMC/SMR

This commit is contained in:
Holger Hans Peter Freyther 2012-12-01 12:51:34 +01:00
parent c1e9be95c2
commit 68f9447744
2 changed files with 4 additions and 3 deletions

View File

@ -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 */

View File

@ -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 */