[U-Boot] [PATCH] cmd_time: merge run_command_and_time_it with cmd_process

Richard Genoud richard.genoud at gmail.com
Mon Dec 3 17:23:45 CET 2012


2012/12/3 Stefan Roese <sr at denx.de>:
>> @@ -543,7 +543,9 @@ enum command_ret_t cmd_process(int flag, int argc, char * const argv[],
>>
>>       /* If OK so far, then do the command */
>>       if (!rc) {
>> +             if (ticks) *ticks = get_timer(0);
>
> Newline please:
>
>                 if (ticks)
>                         *ticks = get_timer(0);
>
>
>>               rc = cmd_call(cmdtp, flag, argc, argv);
>> +             if (ticks) *ticks = get_timer(*ticks);
>
> Here as well.
>
> Thanks,
> Stefan
>
Ok, I'll resend it with new lines (I thought it was a little bit more
readable without new lines).
Thanks !

Richard.


More information about the U-Boot mailing list