Skip to contentSkip to conversation

request_module() use format string

PATCH New maximilian attems 1 participant 1 message Jun 12, 2008 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 request_module() use format string

similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b, but protected with safte checks.
anyway seems cleaner and easier to exclude.

---
 block/elevator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
block/elevator.c +1 -1
index 902dd13..a00eb38 100644
@@ -144,7 +144,7 @@ static struct elevator_type *elevator_get(const char *name)
 		else
 			sprintf(elv, "%s-iosched", name);
 
-		request_module(elv);
+		request_module("%s", elv);
 		spin_lock(&elv_list_lock);
 		e = elevator_find(name);
 	}
Signature · 1 line
1.5.5.1