summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-10-13 18:26:44 +0200
committerHarald Welte <laforge@gnumonks.org>2013-10-13 18:26:44 +0200
commit8781da796c22dc883985bb80d1e1d11fbdaa2135 (patch)
tree256a10bb07924d8cbfb4ffa4c3ed3ca77d68e211 /src/util
parent4f7067bee006a52b3ae0338fb430c0a3b8b2ac9a (diff)
cell_log: Suppress syslog()ing CME ERRORS which are no errors
Diffstat (limited to 'src/util')
-rw-r--r--src/util/cell_log.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/cell_log.c b/src/util/cell_log.c
index 22d1dd9..175de3d 100644
--- a/src/util/cell_log.c
+++ b/src/util/cell_log.c
@@ -456,6 +456,16 @@ static int cinfo_handler(struct lgsm_handle *lh, int evt, struct gsmd_evt_auxdat
static int error_handler(struct lgsm_handle *lh, int evt, struct gsmd_evt_auxdata *aux)
{
int err = aux->u.cme_err.number;
+
+ switch (err) {
+ case 546:
+ case 547:
+ /* those 'errors' are used by wavecom to indicate if
+ * emergency calls are available or not in case no SIM
+ * is inserted. Not really an error! */
+ return 0;
+ }
+
syslog(LOG_ERR, "CME ERROR %u from modem\n", err);
switch (err) {
personal git repositories of Harald Welte. Your mileage may vary