diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-28 12:32:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-28 12:32:14 +0000 |
commit | d65957d369dfa895eda4b20ba24a168c7ce6dd4b (patch) | |
tree | 729c641d771a16228ebd5e2757dca8340730cb41 /nuttx/drivers | |
parent | 021fe70054d93cf21e99cd7ffeaa10054f2bdac6 (diff) | |
download | px4-nuttx-d65957d369dfa895eda4b20ba24a168c7ce6dd4b.tar.gz px4-nuttx-d65957d369dfa895eda4b20ba24a168c7ce6dd4b.tar.bz2 px4-nuttx-d65957d369dfa895eda4b20ba24a168c7ce6dd4b.zip |
More fixe for FreeBSD build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3919 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rwxr-xr-x | nuttx/drivers/mtd/flash_eraseall.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/drivers/mtd/flash_eraseall.c b/nuttx/drivers/mtd/flash_eraseall.c index 7d42fe9d4..5f607da35 100755 --- a/nuttx/drivers/mtd/flash_eraseall.c +++ b/nuttx/drivers/mtd/flash_eraseall.c @@ -90,7 +90,7 @@ int flash_eraseall(FAR const char *driver) ret = open_blockdriver(driver ,0, &inode); if (ret < 0) { - fdbg("ERROR: Failed to open '%s': %d\n", driver, ret); + fdbg("ERROR: Failed to open '%s': %d\n", driver, ret); return ret; } @@ -104,6 +104,10 @@ int flash_eraseall(FAR const char *driver) if (ops->ioctl) { ret = ops->ioctl(inode, MTDIOC_BULKERASE, 0); + if (ret < 0) + { + fdbg("ERROR: MTD ioctl(%04x) failed: %d\n", MTDIOC_BULKERASE, ret); + } } /* Close the block driver */ |