cfb_console: fix build breakage
authorAndreas Bießmann <andreas.devel@googlemail.com>
Fri, 29 Jul 2011 07:10:13 +0000 (09:10 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 29 Jul 2011 09:28:26 +0000 (11:28 +0200)
Commit 09c2e90c110ef99f1203685acd1059114a51b167 "unify version_string"
introduced a build breakage in cfb_console.c

---8<---
cfb_console.c:1497: warning: format '%s' expects type 'char *', but
argument 3 has type 'const char (*)[]'
--->8---

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/video/cfb_console.c

index 77e7285cc7363de400b8e79868966eb179d545e3..b56197fd480fd0f0f24812c21104aafac2d480ba 100644 (file)
@@ -1494,7 +1494,7 @@ static void *video_logo (void)
 
        logo_plot (video_fb_address, VIDEO_COLS, 0, 0);
 
-       sprintf (info, " %s", &version_string);
+       sprintf (info, " %s", version_string);
 
        space = (VIDEO_LINE_LEN / 2 - VIDEO_INFO_X) / VIDEO_FONT_WIDTH;
        len = strlen(info);