--- a/nouveau-pm/monitor_downclocking.c
+++ b/nouveau-pm/monitor_downclocking.c
@@ -22,6 +22,7 @@
  */
 
 #include <stdio.h>
+#include <string.h>
 #include <sys/time.h>
 #include <X11/Xlib.h>
 
@@ -61,18 +62,21 @@
 check_bus_type(Display *dpy)
 {
 	static int bus_type;
+	char tmp[100];
 
 	XNVCTRLQueryTargetAttribute (dpy, NV_CTRL_TARGET_TYPE_X_SCREEN, 0,
                                          0, NV_CTRL_BUS_TYPE, &bus_type);
 //	fprintf(stderr, "NV_CTRL_BUS_TYPE = %d\n", bus_type);
-	fprintf(stderr, "NV_CTRL_BUS_TYPE = ");
+	strcpy(tmp, "NV_CTRL_BUS_TYPE = ");
 	switch(bus_type)
 	{
-		case NV_CTRL_BUS_TYPE_AGP: fprintf(stderr, "AGP\n"); break;
-		case NV_CTRL_BUS_TYPE_PCI: fprintf(stderr, "PCI\n"); break;
-		case NV_CTRL_BUS_TYPE_PCI_EXPRESS: fprintf(stderr, "PCI-Express\n"); break;
-		case NV_CTRL_BUS_TYPE_INTEGRATED: fprintf(stderr, "Integrated\n"); break;
-	}
+		case NV_CTRL_BUS_TYPE_AGP: strcat(tmp, "AGP"); break;
+		case NV_CTRL_BUS_TYPE_PCI: strcat(tmp, "PCI"); break;
+		case NV_CTRL_BUS_TYPE_PCI_EXPRESS: strcat(tmp, "PCI-Express"); break;
+		case NV_CTRL_BUS_TYPE_INTEGRATED: strcat(tmp, "Integrated"); break;
+		default: strcat(tmp, "unknown");
+	}
+	fprintf(stderr, "%s\n", tmp);
 
 	read_bus_rate(dpy);
 }