Commit bce271ceb8a999f9ef642e5abcbab73c58400498

Authored by zhang sanshan
Committed by Zhang Sanshan
1 parent 25b1a6b4df

MA-6386 [Android_MX6Q/DL/SX_SD/ARD]Fastboot: 'reboot fastboot' doesn't work in console. 100%

If we use a invalid cmd to reboot system,such as "reboot 112233"
The console will show:"Restarting system with command '112233'."
Actually it only execute command "reboot"

Signed-off-by: zhang sanshan <b51434@freescale.com>

Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff

... ... @@ -403,10 +403,7 @@
403 403 kernel_restart_prepare(cmd);
404 404 migrate_to_reboot_cpu();
405 405 syscore_shutdown();
406   - if (!cmd)
407   - printk(KERN_EMERG "Restarting system.\n");
408   - else
409   - printk(KERN_EMERG "Restarting system with command '%s'.\n", cmd);
  406 + printk(KERN_EMERG "Restarting system.\n");
410 407 kmsg_dump(KMSG_DUMP_RESTART);
411 408 machine_restart(cmd);
412 409 }