I think it will be useful to print here the unknown code: the string could be "<INVALID (%d)>", printing radio_tech in %d. This would be done in a statically allocated string (being ofonod mono thread that is not a problem).