From owner-svn-src-head@freebsd.org Wed Aug 26 21:31:05 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10A569C2D63; Wed, 26 Aug 2015 21:31:05 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC25918BA; Wed, 26 Aug 2015 21:31:04 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7QLV4wb066626; Wed, 26 Aug 2015 21:31:04 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7QLV4IP066625; Wed, 26 Aug 2015 21:31:04 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201508262131.t7QLV4IP066625@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Wed, 26 Aug 2015 21:31:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287172 - head/sys/dev/drm2 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2015 21:31:05 -0000 Author: bapt Date: Wed Aug 26 21:31:04 2015 New Revision: 287172 URL: https://svnweb.freebsd.org/changeset/base/287172 Log: Add more DRM_* debug macros from linux 3.8.13 Modified: head/sys/dev/drm2/drmP.h Modified: head/sys/dev/drm2/drmP.h ============================================================================== --- head/sys/dev/drm2/drmP.h Wed Aug 26 21:17:48 2015 (r287171) +++ head/sys/dev/drm2/drmP.h Wed Aug 26 21:31:04 2015 (r287172) @@ -204,18 +204,43 @@ struct drm_device; __func__ , ##__VA_ARGS__); \ } while (0) -#define DRM_DEBUG_KMS(fmt, ...) do { \ +#define DRM_DEBUG_DRIVER(fmt, ...) do { \ if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ printf("[" DRM_NAME ":KMS:pid%d:%s] " fmt, DRM_CURRENTPID,\ __func__ , ##__VA_ARGS__); \ } while (0) -#define DRM_DEBUG_DRIVER(fmt, ...) do { \ +#define DRM_DEBUG_KMS(fmt, ...) do { \ if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ printf("[" DRM_NAME ":KMS:pid%d:%s] " fmt, DRM_CURRENTPID,\ __func__ , ##__VA_ARGS__); \ } while (0) +#define DRM_LOG(fmt, args...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME "]:pid%d:%s]" fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + +#define DRM_LOG_KMS(fmt, args...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME "]:KMS:pid%d:%s]" fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + +#define DRM_LOG_MODE(fmt, args...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME "]:pid%d:%s]" fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + +#define DRM_LOG_DRIVER(fmt, args...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME "]:KMS:pid%d:%s]" fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + + /*@}*/ /***********************************************************************/