From bd9ee5bc4510675ad20cb1ca593cc65fe02a182a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 5 Feb 2017 20:45:13 +0100 Subject: [PATCH] fb_generic: nicer debug output, remove dead code Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/beb2a67123fb6b840bc980bf64946e399d839c0e Author: Stefan Seyfried Date: 2017-02-05 (Sun, 05 Feb 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/fb_generic.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/driver/fb_generic.cpp b/src/driver/fb_generic.cpp index 27308eda3..69066e7bc 100644 --- a/src/driver/fb_generic.cpp +++ b/src/driver/fb_generic.cpp @@ -121,8 +121,6 @@ CFrameBuffer* CFrameBuffer::getInstance() if(!frameBuffer) { frameBuffer = new CFrameBuffer(); printf("[neutrino] %s Instance created\n", frameBuffer->fb_name); - } else { - //printf("[neutrino] frameBuffer Instace requested\n"); } return frameBuffer; } @@ -132,7 +130,6 @@ void CFrameBuffer::init(const char * const fbDevice) int tr = 0xFF; fd = open(fbDevice, O_RDWR); - if(!fd) fd = open(fbDevice, O_RDWR); if (fd<0) { perror(fbDevice); @@ -152,7 +149,7 @@ void CFrameBuffer::init(const char * const fbDevice) } available=fix.smem_len; - printf("%dk video mem\n", available/1024); + printf("[fb_generic] %dk video mem\n", available/1024); lbb = lfb = (fb_pixel_t*)mmap(0, available, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0); if (!lfb) { @@ -1169,8 +1166,6 @@ void CFrameBuffer::paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t co if (!getActive()) return; -//printf("%s(%d, %d, %d, %d, %.8X)\n", __FUNCTION__, xa, ya, xb, yb, col); - int dx = abs (xa - xb); int dy = abs (ya - yb); int x;