+int sbts2050_uc_status(struct uc *ucontrol, enum
sbts2050_status_rqt
status)
..
+ msg = sbts2050_ucinfo_get(ucontrol, info);
+
+ if (msg == NULL) {
+ LOGP(DTEMP, LOGL_ERROR, "Error switching off some unit");
This error message doesn't contain very much information. It might be
nice to know both which unit could not be switched off *and* what the
error was.
Also, is DTEMP guaranteed to always be the appropriate subsystem for
this function? Maybe yes, but this code is in sysmobts_misc.c which
suggests that it may be something more general?
I have used DTEMP, because i'm going to have a relation between the
temperature and this function but it's true that somebody can use it in
other cases. I don't know what do you think about that, if somebody can
help me.