Commit 868c836e authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] parisc: small debug cleanup in power.c

small debug cleanup
Committed-by: default avatarRandolph Chung <tausq@parisc-linux.org>
parent 2f112e46
......@@ -54,9 +54,9 @@
#ifdef DEBUG
# define DPRINTK(x) printk x
# define DPRINTK(x...) printk(x)
#else
# define DPRINTK(x) do { } while (0)
# define DPRINTK(x...)
#endif
......@@ -120,14 +120,14 @@ static int shutdown_timer;
static void process_shutdown(void)
{
if (shutdown_timer == 0)
DPRINTK((KERN_INFO "Shutdown requested...\n"));
DPRINTK(KERN_INFO "Shutdown requested...\n");
shutdown_timer++;
/* wait until the button was pressed for 1 second */
if (shutdown_timer == HZ) {
static char msg[] = "Shutting down...";
DPRINTK((KERN_INFO "%s\n", msg));
DPRINTK(KERN_INFO "%s\n", msg);
#ifdef CONFIG_CHASSIS_LCD_LED
lcd_print(msg);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment