summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-08-02 16:03:06 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-08-02 16:03:06 +0000
commit6919847926784b27e1a81cb472739a6927870140 (patch)
tree3ac2b80e8e1755280d64db2370a97e3e79034a77 /sys/dev/pci
parente5b123605d8b38b9247521fb5fde5f7f4b9f88d3 (diff)
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.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/drm_agpsupport.c3
-rw-r--r--sys/dev/pci/drm/drm_drv.c6
2 files changed, 2 insertions, 7 deletions
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,