[Nut-upsdev] [Nut-upsuser] Belkin F6C1100-UNV

Eric S. Raymond esr at thyrsus.com
Wed May 23 11:00:25 UTC 2007


Arjen de Korte <nut+devel at de-korte.org>:
> What would probably be a neat way to solve this, is to add an additional
> parameter to fatalx() and fatal_with_errno() to allow setting an exit
> code. So instead of calling
> 
>     fatalx("No suitable UPS for this driver found");
> 
> one should call
> 
>     fatalx(EXIT_CANTFIND, "No suitable UPS for this driver found");
> 
> Of course this will require massive amount of small changes to pretty much
> all sources (including non-drivers), but has the advantage that many
> drivers already use their own descriptive messages which would be printed
> right before the call to exit() by fatalx() and fatal_with_errno()

Seems like a good plan.
 
> > As a bonus, and since I'm going to have to walk through all the drivers
> > anyway, I'd implement another feature I previously suggested -- SVN
> > revision in the driver banner announcements.
> 
> That would be very useful indeed. This is something we badly need, in
> order to prevent confusion when people mention that they tried 'the latest
> version from SVN'.

I'll start on this as soon as I get SVN access.  It's not a difficult 
thing to implement if one has figured out the right Makefile.am trick,
and I have.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>



More information about the Nut-upsdev mailing list