aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-24 12:22:16 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-03-24 12:22:16 +0100
commitf280308eea8a25de18568350cde4c232fd728496 (patch)
tree34fba4ae33c64961f487797f1db8a545d2fd53b9
parentd51c7df6c55f15cf44f0d2c903dd5248ed59132c (diff)
downloadfbida-f280308eea8a25de18568350cde4c232fd728496.tar.gz
update device reporting
-rw-r--r--drmtools.c3
-rw-r--r--fbtools.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drmtools.c b/drmtools.c
index f936180..9c8288f 100644
--- a/drmtools.c
+++ b/drmtools.c
@@ -161,6 +161,7 @@ gfxstate *drm_init(const char *device)
} else {
snprintf(dev, sizeof(dev), DRM_DEV_NAME, DRM_DIR_NAME, 0);
}
+ fprintf(stderr, "trying drm: %s ...\n", dev);
if (drm_init_dev(dev) < 0)
return NULL;
@@ -190,7 +191,5 @@ gfxstate *drm_init(const char *device)
gfx->restore_display = drm_restore_display;
gfx->cleanup_display = drm_cleanup_display;
-
- fprintf(stderr, "using drm: %s\n", dev);
return gfx;
}
diff --git a/fbtools.c b/fbtools.c
index 673a742..29579ab 100644
--- a/fbtools.c
+++ b/fbtools.c
@@ -241,6 +241,7 @@ gfxstate* fb_init(char *device, char *mode, int vt)
device = "/dev/fb0";
}
}
+ fprintf(stderr, "trying fbdev: %s ...\n", device);
/* get current settings (which we have to restore) */
if (-1 == (fb = open(device,O_RDWR /* O_WRONLY */))) {
@@ -339,8 +340,6 @@ gfxstate* fb_init(char *device, char *mode, int vt)
gfx->restore_display = fb_restore_display;
gfx->cleanup_display = fb_cleanup_display;
-
- fprintf(stderr, "using fbdev: %s\n", device);
return gfx;
err: