laforge
/
openbts-osmo
Archived
1
0
Fork 0

control: use braces with conditions and logging macros

Removes warnings and may prevent future clumsy mistakes.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2011-06-21 17:41:31 -07:00
parent 215b8f7e5d
commit f6ed307167
2 changed files with 10 additions and 4 deletions

View File

@ -361,8 +361,11 @@ bool callManagementDispatchGSM(TransactionEntry& transaction, LogicalChannel* LC
return false;
}
if (message) LOG(NOTICE) << "no support for message " << *message << " from " << transaction.subscriber();
else LOG(NOTICE) << "no support for unrecognized message from " << transaction.subscriber();
if (message) {
LOG(NOTICE) << "no support for message " << *message << " from " << transaction.subscriber();
} else {
LOG(NOTICE) << "no support for unrecognized message from " << transaction.subscriber();
}
// If we got here, we're ignoring the message.

View File

@ -242,8 +242,11 @@ void Control::LocationUpdatingController(const L3LocationUpdatingRequest* lur, S
// Otherwise, we are here because of open registration.
// Either way, we're going to register a phone if we arrive here.
if (success) LOG(INFO) << "registration SUCCESS: " << mobID;
else LOG(INFO) << "registration ALLOWED: " << mobID;
if (success) {
LOG(INFO) << "registration SUCCESS: " << mobID;
} else {
LOG(INFO) << "registration ALLOWED: " << mobID;
}
// Send the "short name".