Skip to content

Commit 26c8cfb

Browse files
arndbhdeller
authored andcommitted
fbdev: shmobile: fix snprintf truncation
The name of the overlay does not fit into the fixed-length field: drivers/video/fbdev/sh_mobile_lcdcfb.c:1577:2: error: 'snprintf' will always be truncated; specified size is 16, but format string expands to at least 25 Make it short enough by changing the string. Fixes: c5deac3 ("fbdev: sh_mobile_lcdc: Implement overlays support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent ada5caa commit 26c8cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/sh_mobile_lcdcfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl)
15751575
*/
15761576
info->fix = sh_mobile_lcdc_overlay_fix;
15771577
snprintf(info->fix.id, sizeof(info->fix.id),
1578-
"SH Mobile LCDC Overlay %u", ovl->index);
1578+
"SHMobile ovl %u", ovl->index);
15791579
info->fix.smem_start = ovl->dma_handle;
15801580
info->fix.smem_len = ovl->fb_size;
15811581
info->fix.line_length = ovl->pitch;

0 commit comments

Comments
 (0)