aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>2015-07-01 11:44:14 +0800
committerBrian Norris <computersforpeace@gmail.com>2015-07-06 14:52:35 -0700
commitddd8d3b39fc9b84a3bdb94d9ac62d2b20581dca4 (patch)
tree5ae694e5678bc8450ff923c984f3afe0314d1280
parente76eeca21de23ae884e415a12809ac683960cbca (diff)
mtd-utils: fix the trailing whitespace problems
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rwxr-xr-xMAKEDEV2
-rw-r--r--fectest.c3
-rwxr-xr-xtests/ubi-tests/stress-test.sh8
-rw-r--r--ubi-utils/libubi.c2
4 files changed, 7 insertions, 8 deletions
diff --git a/MAKEDEV b/MAKEDEV
index b31e61f..a4141b5 100755
--- a/MAKEDEV
+++ b/MAKEDEV
@@ -38,5 +38,5 @@ for a in `seq 0 16` ; do
mknod /dev/mtd$a c 90 `expr $a + $a`
mknod /dev/mtdr$a c 90 `expr $a + $a + 1`
mknod /dev/mtdblock$a b 31 $a
-done
+done
diff --git a/fectest.c b/fectest.c
index c1fbd52..fd577f3 100644
--- a/fectest.c
+++ b/fectest.c
@@ -11,7 +11,6 @@
#include <crc32.h>
#define ERASE_SIZE 131072
-//#define PKT_SIZE 1400
#define NR_PKTS ((ERASE_SIZE + PKT_SIZE - 1) / PKT_SIZE)
#define DROPS 8
@@ -83,7 +82,7 @@ int main(void)
fd = open("after", O_WRONLY|O_TRUNC|O_CREAT, 0644);
if (fd >= 0)
write(fd, pktbuf, ERASE_SIZE);
-
+
exit(1);
}
diff --git a/tests/ubi-tests/stress-test.sh b/tests/ubi-tests/stress-test.sh
index 50c563a..a150495 100755
--- a/tests/ubi-tests/stress-test.sh
+++ b/tests/ubi-tests/stress-test.sh
@@ -60,12 +60,12 @@ print_params()
if [ "$module" = "nandsim" ]; then
printf "%s" "page size ${page_size}KiB, VID offset $vid_offs, "
fi
- printf "%s\n" "fastmap $fastmap"
+ printf "%s\n" "fastmap $fastmap"
}
# Load mtdram with specified size and PEB size
# Usage: load_mtdram <flash size> <PEB size>
-# 1. Flash size is specified in MiB
+# 1. Flash size is specified in MiB
# 2. PEB size is specified in KiB
load_mtdram()
{
@@ -86,7 +86,7 @@ print_separator()
# Usage: run_test <nandsim|mtdram> <flash size> <PEB size> \
# <Page size> <VID hdr offs> <enable fastmap>
# 1. Simulator type (nandsim or mtdram)
-# 2. Flash size is specified in MiB
+# 2. Flash size is specified in MiB
# 3. PEB size is specified in KiB
# 4. Page size is specified in bytes (mtdram ingores this)
# 5. VID header offset (mtdram ingores this)
@@ -98,7 +98,7 @@ run_test()
local peb_size="$3";
local page_size="$4";
local vid_offs="$5"
- local fastmap="$6";
+ local fastmap="$6";
local fm_supported fm_param mtdnum
print_separator
diff --git a/ubi-utils/libubi.c b/ubi-utils/libubi.c
index 1e08b7d..97c0434 100644
--- a/ubi-utils/libubi.c
+++ b/ubi-utils/libubi.c
@@ -792,7 +792,7 @@ int ubi_attach(libubi_t desc, const char *node, struct ubi_attach_request *req)
req->dev_num = r.ubi_num;
/*
* The call succeeded. It means that the kernel ignored
- * 'max_beb_per1024' parameter.
+ * 'max_beb_per1024' parameter.
*/
return 1;
} else if (errno != EINVAL)