Skip to content

Commit 32d9dbe

Browse files
standby24x7gregkh
authored andcommitted
misc: genwqe: Fix format string mismatch in card_debugfs.c
Fix two format string mismatch in genwqe_init_debugfs() Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fc1a5db commit 32d9dbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/misc/genwqe/card_debugfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd)
348348
char name[64];
349349
unsigned int i;
350350

351-
sprintf(card_name, "%s%u_card", GENWQE_DEVNAME, cd->card_idx);
351+
sprintf(card_name, "%s%d_card", GENWQE_DEVNAME, cd->card_idx);
352352

353353
root = debugfs_create_dir(card_name, cd->debugfs_genwqe);
354354
if (!root) {
@@ -454,7 +454,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd)
454454
}
455455

456456
for (i = 0; i < GENWQE_MAX_VFS; i++) {
457-
sprintf(name, "vf%d_jobtimeout_msec", i);
457+
sprintf(name, "vf%u_jobtimeout_msec", i);
458458

459459
file = debugfs_create_u32(name, 0666, root,
460460
&cd->vf_jobtimeout_msec[i]);

0 commit comments

Comments
 (0)