bugfix: print supplied dev_fname on error
authorSubhajit Paul <subhajit_paul@ti.com>
Thu, 4 Jul 2019 10:11:47 +0000 (15:41 +0530)
committerSubhajit Paul <subhajit_paul@ti.com>
Thu, 4 Jul 2019 10:11:47 +0000 (15:41 +0530)
Signed-off-by: Subhajit Paul <subhajit_paul@ti.com>
drm_util.c

index 3fdf60cb3ea61b4e41166d89bf5c2423e5724812..197dc9c545fc67c7bc4e0dcbb74af2cd7b4251f7 100644 (file)
@@ -51,7 +51,7 @@ int setup_drm(char *dev_fname)
 
        drm.fd = open(dev_fname, O_RDWR);
        if(drm.fd < 0) {
-               printf("unable to open card1\n");
+               printf("unable to open card %s\n", dev_fname);
                return -1;
        }