aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-02-04 08:19:36 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-04 08:19:36 +0100
commit679347ddc22e82197c31ef89e388154084506f72 (patch)
treec60d383df85c5834a6b7c22e7351b65413e78851 /fbtools.c
parentfb7fa435af36197db5493775d01b4339484ae225 (diff)
downloadfbida-679347ddc22e82197c31ef89e388154084506f72.tar.gz
drm format wireup
Diffstat (limited to 'fbtools.c')
-rw-r--r--fbtools.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fbtools.c b/fbtools.c
index fd77d31..7b1def2 100644
--- a/fbtools.c
+++ b/fbtools.c
@@ -324,7 +324,8 @@ gfxstate* fb_init(const char *device, char *mode)
gfx->cleanup_display = fb_cleanup_display;
fstat(fb, &st);
- gfx->devnum = st.st_rdev;
+ gfx->devnum = st.st_rdev;
+ snprintf(gfx->devpath, sizeof(gfx->devpath), "%s", device);
return gfx;