[SLOF] [PATCH] Fix remaining compiler warnings in sloffs.c
Segher Boessenkool
segher at kernel.crashing.org
Mon Aug 8 11:30:06 AEST 2016
On Fri, Aug 05, 2016 at 10:48:18AM +0200, Adrian Reber wrote:
> > +static void print_header_date(void *dptr)
> > +{
> > + uint8_t *date = dptr;
> > +
> > + if (*(uint64_t *)dptr != 0) {
This is the exact same problem though. Should be something like
if (date[0] || date[1] || date[2] || date[3]
|| date[4] || date[5] || date[6] || date[7])
> > + printf("%02x%02x-%02x-%02x %02x:%02x", date[2], date[3],
> > + date[4], date[5], date[6], date[7]);
> > + } else {
> > + printf("N/A");
> > + }
> > +
> > +}
Segher
More information about the SLOF
mailing list