Re: [U-Boot] [PATCH] common: fix compiler warning on wrong printf format

2014-08-28 Thread Tom Rini
On Wed, Aug 27, 2014 at 10:27:19AM +1200, Chris Packham wrote: > On Wed, Aug 27, 2014 at 2:02 AM, Alexey Brodkin > wrote: > > bounce_buffer->len_aligned is of type "size_t", but on some arches/compilers > > "size_t" might be an alias to whether "int", "long" or their > > "signed/unsigned" > > fla

Re: [U-Boot] [PATCH] common: fix compiler warning on wrong printf format

2014-08-26 Thread Chris Packham
On Wed, Aug 27, 2014 at 2:02 AM, Alexey Brodkin wrote: > bounce_buffer->len_aligned is of type "size_t", but on some arches/compilers > "size_t" might be an alias to whether "int", "long" or their "signed/unsigned" > flavors. > > So to make compiler happy we explicitly cast to "int" which is expec

[U-Boot] [PATCH] common: fix compiler warning on wrong printf format

2014-08-26 Thread Alexey Brodkin
bounce_buffer->len_aligned is of type "size_t", but on some arches/compilers "size_t" might be an alias to whether "int", "long" or their "signed/unsigned" flavors. So to make compiler happy we explicitly cast to "int" which is expected in printf for "%d" format. this fixes following warning: ---