[Nut-upsdev] zero-prepended values - why oh why?

Niklas Edmundsson nikke at acc.umu.se
Thu Feb 23 21:00:07 UTC 2006


On Thu, 23 Feb 2006, Niels Baggesen wrote:

> On Thu, Feb 23, 2006 at 02:24:49PM -0400, Peter Selinger wrote:
>> Could you give some examples of what you mean? -- Peter
>
> Try running "grep '%0[0-9]*\.[0-9]f' drivers/*.c" ... you will find
> examples in 39 different files!

Yup. snmp-ups is one of those culprits, mge-utalk is another.

And regarding the statement that certain clients might depend on the 
width of the string: If that's the case then we're in trouble, because 
very few drivers are identical in behaviour ;)

> It is for instance the native number format for upscode2 devices.

Yup, but there it actually has a reason for outputting what it does.

/Nikke
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se      |     nikke at acc.umu.se
---------------------------------------------------------------------------
  * * * <- Tribbles  ù ù ù <- Tribbles after a haircut
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Nut-upsdev mailing list