Use aprint when reporting AC adapter status.

This commit is contained in:
jmcneill 2008-05-10 14:01:32 +00:00
parent 2b7bb9303a
commit 0b59054580
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysmon_power.c,v 1.37 2008/03/01 14:16:51 rmind Exp $ */
/* $NetBSD: sysmon_power.c,v 1.38 2008/05/10 14:01:32 jmcneill Exp $ */
/*-
* Copyright (c) 2007 Juan Romero Pardines.
@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.37 2008/03/01 14:16:51 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.38 2008/05/10 14:01:32 jmcneill Exp $");
#include "opt_compat_netbsd.h"
#include <sys/param.h>
@ -1011,14 +1011,16 @@ sysmon_pswitch_event(struct sysmon_pswitch *smpsw, int event)
/*
* Come out of power-save state.
*/
printf("%s: AC adapter online.\n", smpsw->smpsw_name);
aprint_normal("%s: AC adapter online.\n",
smpsw->smpsw_name);
break;
case PSWITCH_EVENT_RELEASED:
/*
* Try to enter a power-save state.
*/
printf("%s: AC adapter offline.\n", smpsw->smpsw_name);
aprint_normal("%s: AC adapter offline.\n",
smpsw->smpsw_name);
break;
}
break;