This error call needs to have more details included so that it doesn't result in a generic:

RILD reply failure: GENERIC_FAILURE

..type of message ( see my email about an existing error message in sim.c with the same problem ).

You could either add \_\_func\_\_, or add a request_to_string() parameter.