From d7ce353d5656690b993acbfe73001b96fa788c97 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 11 Jul 2012 20:22:42 +0200 Subject: [PATCH] system-linux.c: fix sysctl setting The system_set_dev_sysctl() function erroneously used the value instead of the device name to format the sysctl path, this change corrects that. --- system-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-linux.c b/system-linux.c index eb26d20..d2e3d06 100644 --- a/system-linux.c +++ b/system-linux.c @@ -154,7 +154,7 @@ static void system_set_sysctl(const char *path, const char *val) static void system_set_dev_sysctl(const char *path, const char *device, const char *val) { - snprintf(dev_buf, sizeof(dev_buf), path, val); + snprintf(dev_buf, sizeof(dev_buf), path, device); system_set_sysctl(dev_buf, val); } -- 2.11.0