misc: genwqe: Fix format string mismatch in card_debugfs.c
[deliverable/linux.git] / drivers / misc / genwqe / card_debugfs.c
index 50d2096ea1c74d0e86ce9e7fe637f046a2d01a59..0a33ade64109d4f147ba72f8abfedb50e35f0f2f 100644 (file)
@@ -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) {
@@ -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]);
This page took 0.026862 seconds and 5 git commands to generate.