Skip to content

Commit 4f317d6

Browse files
emuslnmstsirkin
authored andcommitted
pds_vdpa: fix up format-truncation complaint
Our friendly kernel test robot has recently been pointing out some format-truncation issues. Here's a fix for one of them. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Shannon Nelson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
1 parent 480b3e7 commit 4f317d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/pds/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void pds_vdpa_debugfs_add_vdpadev(struct pds_vdpa_aux *vdpa_aux)
261261
debugfs_create_file("config", 0400, vdpa_aux->dentry, vdpa_aux->pdsv, &config_fops);
262262

263263
for (i = 0; i < vdpa_aux->pdsv->num_vqs; i++) {
264-
char name[8];
264+
char name[16];
265265

266266
snprintf(name, sizeof(name), "vq%02d", i);
267267
debugfs_create_file(name, 0400, vdpa_aux->dentry,

0 commit comments

Comments
 (0)