Commit 32d9dbe3 authored by Masanari Iida's avatar Masanari Iida Committed by Greg Kroah-Hartman

misc: genwqe: Fix format string mismatch in card_debugfs.c

Fix two format string mismatch in genwqe_init_debugfs()
Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fc1a5dbe
...@@ -348,7 +348,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd) ...@@ -348,7 +348,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd)
char name[64]; char name[64];
unsigned int i; unsigned int i;
sprintf(card_name, "%s%u_card", GENWQE_DEVNAME, cd->card_idx); sprintf(card_name, "%s%d_card", GENWQE_DEVNAME, cd->card_idx);
root = debugfs_create_dir(card_name, cd->debugfs_genwqe); root = debugfs_create_dir(card_name, cd->debugfs_genwqe);
if (!root) { if (!root) {
...@@ -454,7 +454,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd) ...@@ -454,7 +454,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd)
} }
for (i = 0; i < GENWQE_MAX_VFS; i++) { for (i = 0; i < GENWQE_MAX_VFS; i++) {
sprintf(name, "vf%d_jobtimeout_msec", i); sprintf(name, "vf%u_jobtimeout_msec", i);
file = debugfs_create_u32(name, 0666, root, file = debugfs_create_u32(name, 0666, root,
&cd->vf_jobtimeout_msec[i]); &cd->vf_jobtimeout_msec[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment