aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-05-31 13:36:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-04 11:38:51 +0100
commit4fe2b01bfd2831b002e7138dadbc0437df6e9ed6 (patch)
treefb86af5a0819ba95c6ca98c8117d18dd8f29c0d8
parentbb027a332f2f2927a6bcbc4c035b42a012d0579e (diff)
downloadopenembedded-core-contrib-4fe2b01bfd2831b002e7138dadbc0437df6e9ed6.tar.gz
makedevs: Make count actually behave as a count for device blocks
Previously count actually behaved as end, and did not take start into account. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/files/device_table-minimal.txt2
-rw-r--r--meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/files/device_table-minimal.txt b/meta/files/device_table-minimal.txt
index c6e54631ce5..02ed534a4db 100644
--- a/meta/files/device_table-minimal.txt
+++ b/meta/files/device_table-minimal.txt
@@ -13,7 +13,7 @@
/dev/apm_bios c 660 0 46 10 134 - - -
/dev/fb0 c 600 0 0 29 0 - - -
/dev/hda b 660 0 6 3 0 - - -
-/dev/hda b 660 0 6 3 1 1 1 20
+/dev/hda b 660 0 6 3 1 1 1 19
/dev/kmem c 640 0 15 1 2 - - -
/dev/kmsg c 600 0 0 1 11 - - -
/dev/mem c 640 0 15 1 1 - - -
diff --git a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
index 4bb316b3323..6c1f2fb461d 100644
--- a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
+++ b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
@@ -219,7 +219,7 @@ static int interpret_table_entry(char *line)
dev_t rdev;
char buf[80];
- for (i = start; i < count; i++) {
+ for (i = start; i < start + count; i++) {
sprintf(buf, "%s%d", name, i);
sprintf(path, "%s/%s%d", rootdir, name, i);
/* FIXME: MKDEV uses illicit insider knowledge of kernel