All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix makedevs interpretation of device table
@ 2009-09-16 19:04 Antonio Ospite
  2009-09-18 18:50 ` Michael 'Mickey' Lauer
  0 siblings, 1 reply; 8+ messages in thread
From: Antonio Ospite @ 2009-09-16 19:04 UTC (permalink / raw)
  To: openembedded-devel

Currently makedevs is interpreting the 'count' field in device table as "count
from minor number 0", fix it so it becomes "count from the 'start' minor
number".

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
---
 recipes/makedevs/makedevs-1.0.0/makedevs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/makedevs/makedevs-1.0.0/makedevs.c b/recipes/makedevs/makedevs-1.0.0/makedevs.c
index c7ad722..80f21f0 100644
--- a/recipes/makedevs/makedevs-1.0.0/makedevs.c
+++ b/recipes/makedevs/makedevs-1.0.0/makedevs.c
@@ -221,7 +221,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);
 				/* FIXME:  MKDEV uses illicit insider knowledge of kernel 
 				 * major/minor representation...  */
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-22 10:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16 19:04 [PATCH] Fix makedevs interpretation of device table Antonio Ospite
2009-09-18 18:50 ` Michael 'Mickey' Lauer
2009-09-18 22:54   ` [PATCH] Fix files/device_table-ezx.txt Antonio Ospite
2009-09-18 23:21     ` Michael 'Mickey' Lauer
2009-09-19  8:41       ` Antonio Ospite
2009-09-19 20:52         ` Andrea Adami
2009-09-20 14:21           ` Antonio Ospite
2009-09-22 10:16             ` [PATCH] Fix the 'count' field in device_tables Antonio Ospite

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.