The thordown command can be interrupted by Ctrl-C, and it can be
identified with error value. Fix to show stopped message when
interrupted.
Change-Id: Idfe1a9dc1e168ea20c94d49ada497dc1b66bde52
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
ret = thor_init();
if (ret) {
- printk("THOR DOWNLOAD failed: %d\n", ret);
- if (ret == -EINTR)
+ if (ret == -EINTR) {
+ printk("THOR DOWNLOAD stopped\n");
ret = CMD_RET_SUCCESS;
- else
+ } else {
+ printk("THOR DOWNLOAD failed: %d\n", ret);
ret = CMD_RET_FAILURE;
-
+ }
goto exit;
}