aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Welch <zach.welch@timesys.com>2021-10-20 13:51:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-21 19:26:34 +0100
commitfdbd111d6bab2fbbae62a041123fc6b644aa97aa (patch)
treec39254d7403d85dfd7c43898e000c2115b15389b
parentf5203fdee61b90ef9552ca49c213fe16776b3e4b (diff)
downloadpsplash-fdbd111d6bab2fbbae62a041123fc6b644aa97aa.tar.gz
psplash-fdbd111d6bab2fbbae62a041123fc6b644aa97aa.tar.bz2
psplash-fdbd111d6bab2fbbae62a041123fc6b644aa97aa.zip
Improve warnings from probing for double buffering
Adds missing newline characters in output, while clarifying that these messages are warnings that may be safely ignored. Signed-off-by: Zachary T Welch <zach.welch@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--psplash-fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/psplash-fb.c b/psplash-fb.c
index 6603572..2babb5f 100644
--- a/psplash-fb.c
+++ b/psplash-fb.c
@@ -197,7 +197,8 @@ psplash_fb_new (int angle, int fbdev_id)
/* Setup double virtual resolution for double buffering */
if (ioctl(fb->fd, FBIOPAN_DISPLAY, &fb_var) == -1) {
- fprintf(stderr, "FBIOPAN_DISPLAY not supported, double buffering disabled");
+ fprintf(stderr, "warning: FBIOPAN_DISPLAY not supported, "
+ "double buffering disabled\n");
} else {
if (fb_var.yres_virtual == fb_var.yres * 2) {
DBG("Virtual resolution already double");
@@ -205,7 +206,8 @@ psplash_fb_new (int angle, int fbdev_id)
} else {
fb_var.yres_virtual = fb_var.yres * 2;
if (ioctl(fb->fd, FBIOPUT_VSCREENINFO, &fb_var) == -1) {
- fprintf(stderr, "FBIOPUT_VSCREENINFO failed, double buffering disabled");
+ fprintf(stderr, "warning: FBIOPUT_VSCREENINFO failed, "
+ "double buffering disabled\n");
} else {
if (ioctl(fb->fd, FBIOGET_FSCREENINFO, &fb_fix) == -1) {
perror(" Error getting the fixed framebuffer info");