On Friday, August 27, 2010 05:41:08 Reinhard Meyer wrote: > Stefano Babic schrieb: > > --- a/lib/display_options.c > > +++ b/lib/display_options.c > > @@ -101,7 +101,7 @@ void print_size(unsigned long long size, const char > > *s) > > > > #define DEFAULT_LINE_LENGTH_BYTES (16) > > int print_buffer (ulong addr, void* data, uint width, uint count, uint > > linelen) { > > > > - uint8_t linebuf[MAX_LINE_LENGTH_BYTES + 1]; > > + uint8_t linebuf[MAX_LINE_LENGTH_BYTES + 1] > > __attribute__((__aligned__(4))); > > > > uint32_t *uip = (void*)linebuf; > > uint16_t *usp = (void*)linebuf; > > uint8_t *ucp = (void*)linebuf; > > Why not just declare it as > uint_32t linebuf[MAX_LINE_LENGTH_BYTES/4+1]; > ?
i guess that'd be another way of doing it -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot