Add missing .Nm. Add FBSDID. fprintf -> warnx. Lowercase first letter inside

err().
This commit is contained in:
Philippe Charnier 2002-10-15 16:28:21 +00:00
parent a2325efeb1
commit 4cdb6a340b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105157
2 changed files with 8 additions and 9 deletions

View File

@ -111,7 +111,9 @@ it is unknown, -1 is displayed.
Transition the system into standby mode. This mode uses less power than Transition the system into standby mode. This mode uses less power than
full power mode, but more than suspend mode. Some laptops support full power mode, but more than suspend mode. Some laptops support
resuming from this state on timer or Ring Indicator events. The resuming from this state on timer or Ring Indicator events. The
output of apm tells what your laptop claims to support. output of
.Nm
tells what your laptop claims to support.
.It Fl z .It Fl z
Suspend the system. Suspend the system.
It is equivalent to It is equivalent to

View File

@ -13,10 +13,8 @@
* Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*/ */
#ifndef lint #include <sys/cdefs.h>
static const char rcsid[] = __FBSDID("$FreeBSD$");
"$FreeBSD$";
#endif /* not lint */
#include <sys/file.h> #include <sys/file.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
@ -269,9 +267,8 @@ print_all_info(int fd, apm_info_t aip, int bioscall_available)
if (apmerr == 0x0d || apmerr == 0x86) if (apmerr == 0x0d || apmerr == 0x86)
printf("Resume timer: disabled\n"); printf("Resume timer: disabled\n");
else if (apmerr) else if (apmerr)
fprintf(stderr, warnx(
"Failed to get the resume timer: APM error0x%x\n", "failed to get the resume timer: APM error0x%x", apmerr);
apmerr);
else { else {
/* /*
* OK. We have the time (all bcd). * OK. We have the time (all bcd).
@ -386,7 +383,7 @@ apm_set_timer(int fd, int delta)
args.ecx = 0x0000; args.ecx = 0x0000;
} }
if (ioctl(fd, APMIO_BIOS, &args)) { if (ioctl(fd, APMIO_BIOS, &args)) {
err(1,"Set resume timer"); err(1,"set resume timer");
} }
} }