diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-05-31 13:36:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-04 11:43:36 +0100 |
commit | 59bb8e17c7361f54c6c0857a1fd7570142ed0721 (patch) | |
tree | 24a837256f31485709c5ca9749d8bcc29dcacf59 /meta/recipes-devtools/makedevs | |
parent | c81ecf96edd36791842f3e30ef4a141da13e1685 (diff) | |
download | 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.c | 2 |
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 4bb316b332..6c1f2fb461 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) | |||
219 | dev_t rdev; | 219 | dev_t rdev; |
220 | char buf[80]; | 220 | char buf[80]; |
221 | 221 | ||
222 | for (i = start; i < count; i++) { | 222 | for (i = start; i < start + count; i++) { |
223 | sprintf(buf, "%s%d", name, i); | 223 | sprintf(buf, "%s%d", name, i); |
224 | sprintf(path, "%s/%s%d", rootdir, name, i); | 224 | sprintf(path, "%s/%s%d", rootdir, name, i); |
225 | /* FIXME: MKDEV uses illicit insider knowledge of kernel | 225 | /* FIXME: MKDEV uses illicit insider knowledge of kernel |