lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1227110059-12529-1-git-send-email-crquan@gmail.com>
Date:	Wed, 19 Nov 2008 23:54:19 +0800
From:	crquan@...il.com
To:	Jens Axboe <jens.axboe@...cle.com>
Cc:	Greg Kroah-Hartman <gregkh@...e.de>, linux-kernel@...r.kernel.org
Subject: [PATCH] kobject_add: use constant strings directly as fmt strings

From: Cheng Renquan <crquan@...il.com>

Signed-off-by: Cheng Renquan <crquan@...il.com>
---
 block/blk-sysfs.c |    2 +-
 block/elevator.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 21e275d..0b189e9 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -342,7 +342,7 @@ int blk_register_queue(struct gendisk *disk)
 		return 0;
 
 	ret = kobject_add(&q->kobj, kobject_get(&disk_to_dev(disk)->kobj),
-			  "%s", "queue");
+			  "queue");
 	if (ret < 0)
 		return ret;
 
diff --git a/block/elevator.c b/block/elevator.c
index 9ac82dd..9a39f27 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -1005,7 +1005,7 @@ int elv_register_queue(struct request_queue *q)
 	elevator_t *e = q->elevator;
 	int error;
 
-	error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched");
+	error = kobject_add(&e->kobj, &q->kobj, "iosched");
 	if (!error) {
 		struct elv_fs_entry *attr = e->elevator_type->elevator_attrs;
 		if (attr) {
-- 
1.6.0.4.758.g36c05

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ