
9 Jun
2014
9 Jun
'14
12:46 a.m.
On 7 June 2014 07:13, Simon Glass sjg@chromium.org wrote:
The values here are int, but the map_to_sysmem() call can return a long. Add a cast to deal with this.
...
printf("%s- %s @ %08x", buf, in->name, map_to_sysmem(in));
printf("%s- %s @ %08x", buf, in->name, (uint)map_to_sysmem(in));
If the argument is a long, shouldn't it be printed as long, rather than possibly truncated to an int? printf("%s- %s @ %08lx", buf, in->name, map_to_sysmem(in));
Regards, Andre