Module Name: src
Committed By: mrg
Date: Sun Mar 29 19:39:10 UTC 2009
Modified Files:
src/sys/dev/drm: drm_pci.c
Log Message:
include the size in a falled allocation message.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/drm/drm_pci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/drm/drm_pci.c
diff -u src/sys/dev/drm/drm_pci.c:1.13 src/sys/dev/drm/drm_pci.c:1.14
--- src/sys/dev/drm/drm_pci.c:1.13 Sun Jun 29 12:49:08 2008
+++ src/sys/dev/drm/drm_pci.c Sun Mar 29 19:39:10 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_pci.c,v 1.13 2008/06/29 12:49:08 jmcneill Exp $ */
+/* $NetBSD: drm_pci.c,v 1.14 2009/03/29 19:39:10 mrg Exp $ */
/*
* Copyright 2003 Eric Anholt.
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.13 2008/06/29 12:49:08 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.14 2009/03/29 19:39:10 mrg Exp $");
/*
__FBSDID("$FreeBSD: src/sys/dev/drm/drm_pci.c,v 1.2 2005/11/28 23:13:52 anholt Exp $");
*/
@@ -51,7 +51,8 @@
return NULL;
if ((error = bus_dmamem_alloc(dev->pa.pa_dmat, size, align, 0,
h->segs, 1, &nsegs, BUS_DMA_NOWAIT)) != 0) {
- printf("drm: Unable to allocate DMA, error %d\n", error);
+ printf("drm: Unable to allocate %ld bytes of DMA, error %d\n",
+ (long)size, error);
goto fail;
}
if ((error = bus_dmamem_map(dev->pa.pa_dmat, h->segs, nsegs, size,