X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=common%2Fcmd_bootce.c;h=a95f163d479a2f92ce66dde8ad63ba25a5958048;hb=f4cf42c8a6ceafc90afe3b010f1063188e0f8598;hp=c30ed1feeaec843a0496e4977f732b47f59ec098;hpb=44557392479136b39dfea9cf0dc5d3a2eddd6b38;p=karo-tx-uboot.git diff --git a/common/cmd_bootce.c b/common/cmd_bootce.c index c30ed1feea..a95f163d47 100644 --- a/common/cmd_bootce.c +++ b/common/cmd_bootce.c @@ -913,8 +913,6 @@ static inline int ce_init_download_link(ce_net *net, ce_bin *bin, int verbose) return 0; } -#define UINT_MAX ~0UL - static inline int ce_download_file(ce_net *net, ulong timeout) { ulong start = get_timer_masked(); @@ -981,7 +979,7 @@ static int do_ceconnect(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[] timeout = simple_strtoul(argv[i], NULL, 0); if (timeout >= UINT_MAX / CONFIG_SYS_HZ) { - printf("Timeout value %lu out of range (max.: %lu)\n", + printf("Timeout value %lu out of range (max.: %u)\n", timeout, UINT_MAX / CONFIG_SYS_HZ - 1); return CMD_RET_USAGE; }