diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-12 17:40:29 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-12 17:40:29 +0100 |
commit | 16941714352f71789bb2a55e5116d7601d88749b (patch) | |
tree | 6d51970d1f9fcf924e878c74f53adf185fd683fa | |
parent | 3387aa64d40dc7be2900b0368293d9997b97005a (diff) | |
download | px4-firmware-16941714352f71789bb2a55e5116d7601d88749b.tar.gz px4-firmware-16941714352f71789bb2a55e5116d7601d88749b.tar.bz2 px4-firmware-16941714352f71789bb2a55e5116d7601d88749b.zip |
Compile / bugfixes on MTD commandline tool
-rw-r--r-- | src/systemcmds/mtd/mtd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/systemcmds/mtd/mtd.c b/src/systemcmds/mtd/mtd.c index 5104df09e..c9a9ea97a 100644 --- a/src/systemcmds/mtd/mtd.c +++ b/src/systemcmds/mtd/mtd.c @@ -189,7 +189,7 @@ mtd_start(char *partition_names[], unsigned n_partitions) unsigned partsize = nblocks * geo.blocksize; warnx(" No. partitions: %u", n_partitions); - warnx(" Partition size: %lu Blocks (%lu bytes)", nblocks, partsize); + warnx(" Partition size: %lu Blocks (%lu bytes)", (unsigned long)nblocks, (unsigned long)partsize); /* Now create MTD FLASH partitions */ @@ -212,7 +212,6 @@ mtd_start(char *partition_names[], unsigned n_partitions) if (!part[i]) { warnx("ERROR: mtd_partition failed. offset=%lu nblocks=%lu", (unsigned long)offset, (unsigned long)nblocks); - fsync(stderr); exit(4); } @@ -224,7 +223,6 @@ mtd_start(char *partition_names[], unsigned n_partitions) if (ret < 0) { warnx("ERROR: ftl_initialize %s failed: %d", blockname, ret); - fsync(stderr); exit(5); } @@ -234,7 +232,6 @@ mtd_start(char *partition_names[], unsigned n_partitions) if (ret < 0) { warnx("ERROR: bchdev_register %s failed: %d", partition_names[i], ret); - fsync(stderr); exit(6); } } |