Enable debug messages for basic debug type builds.
Signed-off-by: Imre Deak <imre.deak@nokia.com>
CC: Mark Underwood <mark.underwood@imgtec.com>
CC: Mark Riding <mark.riding@imgtec.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@nokia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
-#ifdef CONFIG_PVR_DEBUG_EXTRA
static inline IMG_BOOL NoChildren(struct PVRSRV_HANDLE_BASE *psBase,
struct sHandle *psHandle)
{
static inline IMG_BOOL NoChildren(struct PVRSRV_HANDLE_BASE *psBase,
struct sHandle *psHandle)
{
u32 ui32RealByteSize)
{
struct KV_OFFSET_STRUCT *psOffsetStruct;
u32 ui32RealByteSize)
{
struct KV_OFFSET_STRUCT *psOffsetStruct;
-#if defined(CONFIG_PVR_DEBUG_EXTRA) || defined(DEBUG_LINUX_MMAP_AREAS)
+#if defined(CONFIG_PVR_DEBUG) || defined(DEBUG_LINUX_MMAP_AREAS)
const char *pszName =
LinuxMemAreaTypeToString(LinuxMemAreaRootType(psLinuxMemArea));
#endif
const char *pszName =
LinuxMemAreaTypeToString(LinuxMemAreaRootType(psLinuxMemArea));
#endif
enum PVRSRV_ERROR PVRMMapRegisterArea(struct LinuxMemArea *psLinuxMemArea)
{
enum PVRSRV_ERROR eError = PVRSRV_ERROR_GENERIC;
enum PVRSRV_ERROR PVRMMapRegisterArea(struct LinuxMemArea *psLinuxMemArea)
{
enum PVRSRV_ERROR eError = PVRSRV_ERROR_GENERIC;
-#if defined(CONFIG_PVR_DEBUG_EXTRA) || defined(DEBUG_LINUX_MMAP_AREAS)
+#if defined(CONFIG_PVR_DEBUG) || defined(DEBUG_LINUX_MMAP_AREAS)
const char *pszName =
LinuxMemAreaTypeToString(LinuxMemAreaRootType(psLinuxMemArea));
#endif
const char *pszName =
LinuxMemAreaTypeToString(LinuxMemAreaRootType(psLinuxMemArea));
#endif
#define PVR_DBG_CALLTRACE DBGPRIV_CALLTRACE
#define PVR_DBG_ALLOC DBGPRIV_ALLOC
#define PVR_DBG_CALLTRACE DBGPRIV_CALLTRACE
#define PVR_DBG_ALLOC DBGPRIV_ALLOC
-#if defined(CONFIG_PVR_DEBUG_EXTRA)
+#if defined(CONFIG_PVR_DEBUG)
#define PVR_ASSERT(EXPR) \
do { \
#define PVR_ASSERT(EXPR) \
do { \
#define RESMAN_SIGNATURE 0x12345678
struct RESMAN_ITEM {
#define RESMAN_SIGNATURE 0x12345678
struct RESMAN_ITEM {
-#ifdef CONFIG_PVR_DEBUG_EXTRA
u32 ui32Signature;
#endif
struct RESMAN_ITEM **ppsThis;
u32 ui32Signature;
#endif
struct RESMAN_ITEM **ppsThis;
};
struct RESMAN_CONTEXT {
};
struct RESMAN_CONTEXT {
-#ifdef CONFIG_PVR_DEBUG_EXTRA
u32 ui32Signature;
#endif
struct RESMAN_CONTEXT **ppsThis;
u32 ui32Signature;
#endif
struct RESMAN_CONTEXT **ppsThis;
-#ifdef CONFIG_PVR_DEBUG_EXTRA
psResManContext->ui32Signature = RESMAN_SIGNATURE;
#endif
psResManContext->psResItemList = NULL;
psResManContext->ui32Signature = RESMAN_SIGNATURE;
#endif
psResManContext->psResItemList = NULL;
return (struct RESMAN_ITEM *)NULL;
}
return (struct RESMAN_ITEM *)NULL;
}
-#ifdef CONFIG_PVR_DEBUG_EXTRA
psNewResItem->ui32Signature = RESMAN_SIGNATURE;
#endif
psNewResItem->ui32ResType = ui32ResType;
psNewResItem->ui32Signature = RESMAN_SIGNATURE;
#endif
psNewResItem->ui32ResType = ui32ResType;
PVR_DBG_BREAK;
return PVRSRV_ERROR_INVALID_PARAMS;
}
PVR_DBG_BREAK;
return PVRSRV_ERROR_INVALID_PARAMS;
}
-#ifdef CONFIG_PVR_DEBUG_EXTRA
PVR_ASSERT(psResItem->ui32Signature == RESMAN_SIGNATURE);
#endif
PVR_ASSERT(psResItem->ui32Signature == RESMAN_SIGNATURE);
#endif
PVR_DBG_BREAK;
return PVRSRV_ERROR_INVALID_PARAMS;
}
PVR_DBG_BREAK;
return PVRSRV_ERROR_INVALID_PARAMS;
}
-#ifdef CONFIG_PVR_DEBUG_EXTRA
PVR_ASSERT(psItem->ui32Signature == RESMAN_SIGNATURE);
#endif
PVR_ASSERT(psItem->ui32Signature == RESMAN_SIGNATURE);
#endif