From: NeilBrown Date: Mon, 9 Sep 2013 23:31:18 +0000 (+1000) Subject: managemon: fix a dprintk. X-Git-Tag: mdadm-3.3.1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc8132563404ab47392d63a440efa798fe72eefc;p=thirdparty%2Fmdadm.git managemon: fix a dprintk. There is not guarantee that 'inst' is a number, and even if there were there is no point converting it str->int and then int->str again. Signed-off-by: NeilBrown --- diff --git a/managemon.c b/managemon.c index fc8d1fe7..5f7e2ced 100644 --- a/managemon.c +++ b/managemon.c @@ -697,7 +697,7 @@ static void manage_new(struct mdstat_ent *mdstat, new->resync_start_fd = sysfs_open(new->info.sys_name, NULL, "resync_start"); new->metadata_fd = sysfs_open(new->info.sys_name, NULL, "metadata_version"); new->sync_completed_fd = sysfs_open(new->info.sys_name, NULL, "sync_completed"); - dprintf("%s: inst: %d action: %d state: %d\n", __func__, atoi(inst), + dprintf("%s: inst: %s action: %d state: %d\n", __func__, inst, new->action_fd, new->info.state_fd); if (sigterm)