aboutsummaryrefslogtreecommitdiffstats
path: root/src/db_auc.c
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-12-07 12:44:50 +0100
committerStefan Sperling <ssperling@sysmocom.de>2018-12-07 12:45:19 +0100
commit705b61bcb795490e265027d0b45499b87dd65e12 (patch)
treef697a7e382d9f24a95980172fb2c676255c7a70a /src/db_auc.c
parent638ba8cc049b35c1a6a604fb058a92cff68198e1 (diff)
add whitespace around PRId64 constants
Avoid string concatenations without interleaving whitespace. Some compilers don't like "foo""bar", they only like "foo" "bar". Requested by: Pau https://gerrit.osmocom.org/c/osmo-hlr/+/12121/5/src/db_hlr.c#637 Change-Id: Ic7a81114f9afbefcbd62d434720854cfdd4a2dd9
Diffstat (limited to 'src/db_auc.c')
-rw-r--r--src/db_auc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db_auc.c b/src/db_auc.c
index 5fb5e3a..e29b44b 100644
--- a/src/db_auc.c
+++ b/src/db_auc.c
@@ -49,7 +49,7 @@ int db_update_sqn(struct db_context *dbc, int64_t subscr_id, uint64_t new_sqn)
/* execute the statement */
rc = sqlite3_step(stmt);
if (rc != SQLITE_DONE) {
- LOGP(DAUC, LOGL_ERROR, "Cannot update SQN for subscriber ID=%"PRId64
+ LOGP(DAUC, LOGL_ERROR, "Cannot update SQN for subscriber ID=%" PRId64
": SQL error: (%d) %s\n",
subscr_id, rc, sqlite3_errmsg(dbc->db));
ret = -EIO;
@@ -59,11 +59,11 @@ int db_update_sqn(struct db_context *dbc, int64_t subscr_id, uint64_t new_sqn)
/* verify execution result */
rc = sqlite3_changes(dbc->db);
if (!rc) {
- LOGP(DAUC, LOGL_ERROR, "Cannot update SQN for subscriber ID=%"PRId64
+ LOGP(DAUC, LOGL_ERROR, "Cannot update SQN for subscriber ID=%" PRId64
": no auc_3g entry for such subscriber\n", subscr_id);
ret = -ENOENT;
} else if (rc != 1) {
- LOGP(DAUC, LOGL_ERROR, "Update SQN for subscriber ID=%"PRId64
+ LOGP(DAUC, LOGL_ERROR, "Update SQN for subscriber ID=%" PRId64
": SQL modified %d rows (expected 1)\n", subscr_id, rc);
ret = -EIO;
}