From: oga Date: Sat, 2 Aug 2008 16:03:05 +0000 (+0000) Subject: Make the drm attach messages a lot prettier. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5f20f51da0734a8e89ec0d5a05d4e36a656e096c;p=openbsd Make the drm attach messages a lot prettier. the DRM_{INFO,ERROR,DEBUG} printf macros still need some __VA_ARGS__ love. reyk@ and marco@ liked this, prompted by deraadt. --- diff --git a/sys/dev/pci/drm/drm_agpsupport.c b/sys/dev/pci/drm/drm_agpsupport.c index cada9cf8090..2289986b065 100644 --- a/sys/dev/pci/drm/drm_agpsupport.c +++ b/sys/dev/pci/drm/drm_agpsupport.c @@ -397,9 +397,6 @@ drm_agp_init(void) #endif head->base = head->info.ai_aperture_base; TAILQ_INIT(&head->memory); - DRM_INFO("AGP at 0x%08lx %dMB\n", - (long)head->info.ai_aperture_base, - (int)(head->info.ai_aperture_size >> 20)); } return head; } diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 13f7c62cc74..994595b8123 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -177,8 +177,7 @@ drm_attach(struct device *parent, struct device *kdev, dev->id_entry = id_entry; dev->driver.id_entry = id_entry; - printf("\n"); - DRM_INFO("%s (unit %d)\n", id_entry->name, dev->unit); + printf(": %s(%d)", id_entry->name, dev->unit); drm_load(dev); } @@ -405,8 +404,7 @@ drm_load(struct drm_device *dev) DRM_ERROR("Cannot allocate memory for context bitmap.\n"); goto error; } - DRM_INFO("Initialized %s %d.%d.%d %s\n", - dev->driver.name, + printf(", %d.%d.%d %s\n", dev->driver.major, dev->driver.minor, dev->driver.patchlevel,