Re: [systemd-devel] How to handle untagged hexvalues in systemd code?

2018-01-16 Thread Lennart Poettering
On Mo, 15.01.18 18:44, Olaf Hering (o...@aepfle.de) wrote: > I submitted a correct and tested patch via > https://github.com/systemd/systemd/pull/7581, which was using > sscanf("0028f0", "%x",). During discussion I was soft-forced to > use systemd helper functions. These (strtoull based) helpers

Re: [systemd-devel] How to handle untagged hexvalues in systemd code?

2018-01-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jan 15, 2018 at 06:44:41PM +0100, Olaf Hering wrote: > I submitted a correct and tested patch via > https://github.com/systemd/systemd/pull/7581, which was using > sscanf("0028f0", "%x",). During discussion I was soft-forced to use > systemd helper functions. These (strtoull based)

[systemd-devel] How to handle untagged hexvalues in systemd code?

2018-01-15 Thread Olaf Hering
I submitted a correct and tested patch via https://github.com/systemd/systemd/pull/7581, which was using sscanf("0028f0", "%x",). During discussion I was soft-forced to use systemd helper functions. These (strtoull based) helpers expect "0x...", which sysfs does not provide. As a result