diff options
author | SooChan Lim <sc1.lim@samsung.com> | 2015-12-16 13:56:46 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2015-12-16 13:56:46 +0900 |
commit | 05609b58bf54f3fda089cdb028116d320e6d895e (patch) | |
tree | 04c61c5eae569d0fbe1d62e67c56e39a497bd627 | |
parent | 2a71d406c2fa9a2df41bdf6d09969b1c7e62341e (diff) | |
download | libdrm-devel/sprd_drm.tar.gz libdrm-devel/sprd_drm.tar.bz2 libdrm-devel/sprd_drm.zip |
sprd_drm: turn off the SPRD_DEBUG_MSGdevel/sprd_drm
Change-Id: Ibe883b2e4698b88002c17c30127de6efa3f1cb7c
-rwxr-xr-x[-rw-r--r--] | sprd/sprd_drm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sprd/sprd_drm.c b/sprd/sprd_drm.c index add3bbdc..283ba1e6 100644..100755 --- a/sprd/sprd_drm.c +++ b/sprd/sprd_drm.c @@ -57,16 +57,16 @@ #define ALIGN(_v, _d) (((_v) + ((_d) - 1)) & ~((_d) - 1)) -#define SPRD_DEBUG_MSG 1 +//#define SPRD_DEBUG_MSG 1 #ifdef SPRD_DEBUG_MSG #define SPRD_DRM_DEBUG(fmt, ...) printf(fmt, ##__VA_ARGS__) - #define SPRD_DRM_ERROR(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) #else #define SPRD_DRM_DEBUG(fmt, ...) - #define SPRD_DRM_ERROR(fmt, ...) #endif +#define SPRD_DRM_ERROR(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) + #define FB_DEV_LCD "/dev/fb0" //TODO:: @@ -859,7 +859,7 @@ static int32_t sprd_drm_plane_set_property(struct sprd_drm_property *prop, uint3 if (plane == NULL) { return -EINVAL; } - + if (strcmp(prop->name, "zpos") == 0) { zpos = (uint32_t)val; } @@ -870,7 +870,7 @@ static int32_t sprd_drm_plane_set_property(struct sprd_drm_property *prop, uint3 if(!_chack_zpos(zpos)) { return -EINVAL; } - + if (plane->zpos != zpos) { plane->need_update = 1; plane->zpos = zpos; @@ -1014,7 +1014,7 @@ static int32_t sprd_drm_connector_set_property(struct sprd_drm_property *prop, u sprd_drm_connector_enable(conn); } } - + return 0; } |