[PATCH 8/13] powermate: Clean up printk()'s indrivers/usb/input/powermate.c

From: James Nelson
Date: Sat Mar 05 2005 - 19:01:51 EST


Add newlines and KERN_ constants to printk()s neeeding them in
drivers/usb/input/powermate.c

Signed-off-by: James Nelson <james4765@xxxxxxxxx>

diff -Nurp -x dontdiff-osdl --exclude='*~' linux-2.6.11-mm1-original/drivers/usb/input/powermate.c linux-2.6.11-mm1/drivers/usb/input/powermate.c
--- linux-2.6.11-mm1-original/drivers/usb/input/powermate.c 2005-03-05 13:29:48.000000000 -0500
+++ linux-2.6.11-mm1/drivers/usb/input/powermate.c 2005-03-05 15:46:40.000000000 -0500
@@ -170,7 +170,7 @@ static void powermate_sync_state(struct
pm->configcr->wIndex = cpu_to_le16( pm->static_brightness );
pm->requires_update &= ~UPDATE_STATIC_BRIGHTNESS;
}else{
- printk(KERN_ERR "powermate: unknown update required");
+ printk(KERN_ERR "powermate: unknown update required\n");
pm->requires_update = 0; /* fudge the bug */
return;
}
@@ -188,7 +188,7 @@ static void powermate_sync_state(struct
pm->config->transfer_flags |= URB_NO_SETUP_DMA_MAP;

if (usb_submit_urb(pm->config, GFP_ATOMIC))
- printk(KERN_ERR "powermate: usb_submit_urb(config) failed");
+ printk(KERN_ERR "powermate: usb_submit_urb(config) failed\n");
}

/* Called when our asynchronous control message completes. We may need to issue another immediately */
@@ -357,7 +357,7 @@ static int powermate_probe(struct usb_in
maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe));

if(maxp < POWERMATE_PAYLOAD_SIZE_MIN || maxp > POWERMATE_PAYLOAD_SIZE_MAX){
- printk("powermate: Expected payload of %d--%d bytes, found %d bytes!\n",
+ printk(KERN_WARNING "powermate: Expected payload of %d--%d bytes, found %d bytes!\n",
POWERMATE_PAYLOAD_SIZE_MIN, POWERMATE_PAYLOAD_SIZE_MAX, maxp);
maxp = POWERMATE_PAYLOAD_SIZE_MAX;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/