From bf5a60a0343aa1b885539c608566d1d92616ecea Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 31 Aug 2011 23:28:21 -0700 Subject: [PATCH] add some error logging to mmcutils Change-Id: I4c886822e7d47a0b5636bfc656039b171303d4e5 --- mmcutils/mmcutils.c | 12 +++++++++--- 1 file 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; }