From e14ddaf204b353d5b5a14f555da419178163a189 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 27 Nov 2013 11:43:37 +0100 Subject: 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. --- src/osmo-bts-sysmo/utils.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/osmo-bts-sysmo') 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 #include +#include #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; } -- cgit v1.2.3