No more apm_errno. It breaks the build with APM_DEBUG,

uses (sc->bios.r.eax >> 8) & 0xff instead.
This commit is contained in:
Mitsuru IWASAKI 1999-07-29 18:15:33 +00:00
parent ab533dd005
commit d0c9cc72d2
2 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.93 1999/07/28 20:20:29 msmith Exp $
* $Id: apm.c,v 1.94 1999/07/29 01:49:12 msmith Exp $
*/
#include "opt_devfs.h"
@ -972,7 +972,7 @@ apm_attach(device_t dev)
if (apm_enable_disable_pm(1)) {
#ifdef APM_DEBUG
printf("apm: *Warning* enable function failed! [%x]\n",
apm_errno);
(sc->bios.r.eax >> 8) & 0xff);
#endif
}
}
@ -982,7 +982,7 @@ apm_attach(device_t dev)
if (apm_engage_disengage_pm(1)) {
#ifdef APM_DEBUG
printf("apm: *Warning* engage function failed err=[%x]",
apm_errno);
(sc->bios.r.eax >> 8) & 0xff);
printf(" (Docked or using external power?).\n");
#endif
}

View File

@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.93 1999/07/28 20:20:29 msmith Exp $
* $Id: apm.c,v 1.94 1999/07/29 01:49:12 msmith Exp $
*/
#include "opt_devfs.h"
@ -972,7 +972,7 @@ apm_attach(device_t dev)
if (apm_enable_disable_pm(1)) {
#ifdef APM_DEBUG
printf("apm: *Warning* enable function failed! [%x]\n",
apm_errno);
(sc->bios.r.eax >> 8) & 0xff);
#endif
}
}
@ -982,7 +982,7 @@ apm_attach(device_t dev)
if (apm_engage_disengage_pm(1)) {
#ifdef APM_DEBUG
printf("apm: *Warning* engage function failed err=[%x]",
apm_errno);
(sc->bios.r.eax >> 8) & 0xff);
printf(" (Docked or using external power?).\n");
#endif
}