aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-27 11:43:37 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-27 11:46:45 +0100
commite14ddaf204b353d5b5a14f555da419178163a189 (patch)
tree00e59d450d6355cebd9f513a6fa473fb5177001e
parente968c4224d2ee21731d0867671bd4133925cbff3 (diff)
sysmobts: Print the model number that is not supported.
When using an old kernel on revD hardware we will read garabge from the EEPROM and it is nice for debugging to see which model number has been picked.
-rw-r--r--src/osmo-bts-sysmo/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/utils.c b/src/osmo-bts-sysmo/utils.c
index 0114fd3e..f576eef5 100644
--- a/src/osmo-bts-sysmo/utils.c
+++ b/src/osmo-bts-sysmo/utils.c
@@ -25,6 +25,7 @@
#include <osmo-bts/bts.h>
#include <osmo-bts/gsm_data.h>
+#include <osmo-bts/logging.h>
#include "femtobts.h"
#include "l1_if.h"
@@ -128,6 +129,10 @@ int sysmobts_get_nominal_power(struct gsm_bts_trx *trx)
/* 5W(39dBm) per TRX. This could be raiesd to 10W(40dBm)
* if the second TRX is not used. */
return 37;
+ default:
+ LOGP(DL1C, LOGL_ERROR, "Model number %u/0x%x not known.\n",
+ fl1h->hw_info.model_nr, fl1h->hw_info.model_nr);
+ break;
}
return -1;
}