Skip to content

Commit

Permalink
misc: genwqe: Fix format string mismatch in card_debugfs.c
Browse files Browse the repository at this point in the history
Fix two format string mismatch in genwqe_init_debugfs()

Signed-off-by: Masanari Iida <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
standby24x7 authored and gregkh committed May 3, 2014
1 parent fc1a5db commit 32d9dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/misc/genwqe/card_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd)
char name[64];
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);
if (!root) {
Expand Down Expand Up @@ -454,7 +454,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd)
}

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,
&cd->vf_jobtimeout_msec[i]);
Expand Down

0 comments on commit 32d9dbe

Please sign in to comment.