summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/makedevs
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:43:36 +0100
commit59bb8e17c7361f54c6c0857a1fd7570142ed0721 (patch)
tree24a837256f31485709c5ca9749d8bcc29dcacf59 /meta/recipes-devtools/makedevs
parentc81ecf96edd36791842f3e30ef4a141da13e1685 (diff)
downloadast2050-yocto-poky-59bb8e17c7361f54c6c0857a1fd7570142ed0721.zip
ast2050-yocto-poky-59bb8e17c7361f54c6c0857a1fd7570142ed0721.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. (From OE-Core rev: 4fe2b01bfd2831b002e7138dadbc0437df6e9ed6) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/makedevs')
-rw-r--r--meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c2
1 files changed, 1 insertions, 1 deletions
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 4bb316b..6c1f2fb 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
OpenPOWER on IntegriCloud