[Nut-upsdev] apcsmart.c question

Arjen de Korte nut+devel at de-korte.org
Wed Jan 19 07:29:10 UTC 2011


Citeren Michal Soltys <soltys op ziu.info>:

> - in upsdrv_shutdown(), there're loads of printfs - they kinda look  
> like a leftover from older debug times. Shouldn't they be changed  
> into upsdebugx() or upslogx() ?

This is pointless. The part of the code is typically run near the end  
of the system halt script. By that time, you won't have write access  
anymore (so the syslog is no longer available). Since the system is  
about to power off, there is not much to gain by converting this to  
upsdebug calls. In many cases, you won't have the time to read them  
anyway.

Best regards, Arjen
-- 
Please keep list traffic on the list (off-list replies will be rejected)




More information about the Nut-upsdev mailing list