diff options
author | Márton Németh <nm127@freemail.hu> | 2008-01-24 00:58:57 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-07 00:09:39 -0500 |
commit | 3e684eae586a9b210a4517da5637a255b1ff5a92 (patch) | |
tree | d8703d708e8fd37f0f1a74d9328e2da3faa555fc /drivers/char/drm/radeon_cp.c | |
parent | 4d1f78880e9631fb08052dcc8e3341eecea537e0 (diff) |
drm: cleanup DRM_DEBUG() parameters
As DRM_DEBUG macro already prints out the __FUNCTION__ string (see
drivers/char/drm/drmP.h), it is not worth doing this again. At some
other places the ending "\n" was added.
airlied:- I cleaned up a few that this patch missed also
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/radeon_cp.c')
-rw-r--r-- | drivers/char/drm/radeon_cp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/drm/radeon_cp.c b/drivers/char/drm/radeon_cp.c index df223020f0ae..e16294c039e4 100644 --- a/drivers/char/drm/radeon_cp.c +++ b/drivers/char/drm/radeon_cp.c | |||
@@ -1852,12 +1852,12 @@ int radeon_cp_start(struct drm_device *dev, void *data, struct drm_file *file_pr | |||
1852 | LOCK_TEST_WITH_RETURN(dev, file_priv); | 1852 | LOCK_TEST_WITH_RETURN(dev, file_priv); |
1853 | 1853 | ||
1854 | if (dev_priv->cp_running) { | 1854 | if (dev_priv->cp_running) { |
1855 | DRM_DEBUG("%s while CP running\n", __FUNCTION__); | 1855 | DRM_DEBUG("while CP running\n"); |
1856 | return 0; | 1856 | return 0; |
1857 | } | 1857 | } |
1858 | if (dev_priv->cp_mode == RADEON_CSQ_PRIDIS_INDDIS) { | 1858 | if (dev_priv->cp_mode == RADEON_CSQ_PRIDIS_INDDIS) { |
1859 | DRM_DEBUG("%s called with bogus CP mode (%d)\n", | 1859 | DRM_DEBUG("called with bogus CP mode (%d)\n", |
1860 | __FUNCTION__, dev_priv->cp_mode); | 1860 | dev_priv->cp_mode); |
1861 | return 0; | 1861 | return 0; |
1862 | } | 1862 | } |
1863 | 1863 | ||
@@ -1962,7 +1962,7 @@ int radeon_cp_reset(struct drm_device *dev, void *data, struct drm_file *file_pr | |||
1962 | LOCK_TEST_WITH_RETURN(dev, file_priv); | 1962 | LOCK_TEST_WITH_RETURN(dev, file_priv); |
1963 | 1963 | ||
1964 | if (!dev_priv) { | 1964 | if (!dev_priv) { |
1965 | DRM_DEBUG("%s called before init done\n", __FUNCTION__); | 1965 | DRM_DEBUG("called before init done\n"); |
1966 | return -EINVAL; | 1966 | return -EINVAL; |
1967 | } | 1967 | } |
1968 | 1968 | ||