diff options
author | Koushik Dutta <koushd@gmail.com> | 2011-08-31 23:28:21 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2011-08-31 23:28:21 -0700 |
commit | bf5a60a0343aa1b885539c608566d1d92616ecea (patch) | |
tree | 1eb34443fd858417246c79ca55a5b47babc87b40 /mmcutils | |
parent | 5268131918bc9ffdcd2f82de12778247bf86782e (diff) | |
download | bootable_recovery-bf5a60a0343aa1b885539c608566d1d92616ecea.zip bootable_recovery-bf5a60a0343aa1b885539c608566d1d92616ecea.tar.gz bootable_recovery-bf5a60a0343aa1b885539c608566d1d92616ecea.tar.bz2 |
add some error logging to mmcutils
Change-Id: I4c886822e7d47a0b5636bfc656039b171303d4e5
Diffstat (limited to 'mmcutils')
-rw-r--r-- | mmcutils/mmcutils.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mmcutils/mmcutils.c b/mmcutils/mmcutils.c index 76b8ff8..492dadc 100644 --- a/mmcutils/mmcutils.c +++ b/mmcutils/mmcutils.c @@ -348,17 +348,23 @@ format_ext3_device (const char *device) { char *const tune2fs[] = {TUNE2FS_BIN, "-j", "-C", "1", device, NULL}; #endif // Run mke2fs - if(run_exec_process(mke2fs)) + if(run_exec_process(mke2fs)) { + printf("failure while running mke2fs\n"); return -1; + } // Run tune2fs - if(run_exec_process(tune2fs)) + if(run_exec_process(tune2fs)) { + printf("failure while running mke2fs\n"); return -1; + } // Run e2fsck char *const e2fsck[] = {E2FSCK_BIN, "-fy", device, NULL}; - if(run_exec_process(e2fsck)) + if(run_exec_process(e2fsck)) { + printf("failure while running e2fsck\n"); return -1; + } return 0; } |