flush_cache(start_addr, size);
- sprintf(buf, "%lX", size);
+ sprintf(buf, "0x%lX", size);
setenv("filesize", buf);
return addr;
flush_cache(address, size_dl);
- sprintf(buf, "%X", size_dl);
+ sprintf(buf, "0x%X", size_dl);
setenv("filesize", buf);
} else {
puts("\n");
char buf[10];
printf("\nBytes transferred: %ld (0x%lx)\n", NetBootFileXferSize, NetBootFileXferSize);
- sprintf(buf, "%lx", NetBootFileXferSize);
+ sprintf(buf, "0x%lX", NetBootFileXferSize);
setenv("filesize", buf);
- sprintf(buf, "%lX", (unsigned long)load_addr);
+ sprintf(buf, "0x%lX", (unsigned long)load_addr);
setenv("fileaddr", buf);
}