added warning log when tbm_bufmgr_init get valid fd 61/109961/7
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 12 Jan 2017 09:20:30 +0000 (18:20 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 13 Jan 2017 03:42:17 +0000 (12:42 +0900)
Change-Id: I7115ea121221a70341781bd064effed32884d608

src/tbm_bufmgr.c

index 0289868..65c2906 100644 (file)
@@ -614,6 +614,11 @@ tbm_bufmgr_init(int fd)
 
        pthread_mutex_lock(&gLock);
 
+       if (fd >= 0) {
+               TBM_LOG_W("!!!!!WARNING:: The tbm_bufmgr_init DOSE NOT use argument fd ANYMORE.\n");
+               TBM_LOG_W("!!!!!WARNING:: IT WILL BE CHANGED like tbm_bufmgr_init(int fd) --> tbm_bufmgr_init(void).\n");
+       }
+
        /* initialize buffer manager */
        if (gBufMgr) {
                gBufMgr->ref_count++;