Remove trailing whitespace.
This commit is contained in:
parent
8296e78c83
commit
9789cd30e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291372
@ -91,7 +91,7 @@ kvm_fdnlist(int fd, struct nlist *list)
|
||||
ps_err_e pserr;
|
||||
int nfail;
|
||||
|
||||
nfail = 0;
|
||||
nfail = 0;
|
||||
while (list->n_name != NULL && list->n_name[0] != '\0') {
|
||||
list->n_other = 0;
|
||||
list->n_desc = 0;
|
||||
|
@ -150,7 +150,7 @@ kvm_deadfiles(kvm_t *kd, int op __unused, int arg __unused, long allproc_o,
|
||||
fail:
|
||||
free(ofiles);
|
||||
return (0);
|
||||
|
||||
|
||||
}
|
||||
|
||||
char *
|
||||
|
@ -10,7 +10,7 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
@ -77,7 +77,7 @@ static int getsysctl(kvm_t *, const char *, void *, size_t);
|
||||
_kvm_err(kd, kd->program, "cannot read %s", msg); \
|
||||
return (-1); \
|
||||
}
|
||||
|
||||
|
||||
#define GETSWDEVNAME(dev, str, flags) \
|
||||
if (dev == NODEV) { \
|
||||
strlcpy(str, "[NFS swap]", sizeof(str)); \
|
||||
@ -231,7 +231,7 @@ nlist_init(kvm_t *kd)
|
||||
_kvm_err(kd, kd->program, "unable to find swtailq");
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
if (kvm_swap_nl[NL_DMMAX].n_value == 0) {
|
||||
_kvm_err(kd, kd->program, "unable to find dmmax");
|
||||
return (0);
|
||||
|
@ -269,7 +269,7 @@ _kvm_vatop(kvm_t *kd, u_long va, off_t *pa)
|
||||
if (PTD == 0) {
|
||||
s = _kvm_pa2off(kd, va, pa);
|
||||
if (s == 0) {
|
||||
_kvm_err(kd, kd->program,
|
||||
_kvm_err(kd, kd->program,
|
||||
"_kvm_vatop: bootstrap data not in dump");
|
||||
goto invalid;
|
||||
} else
|
||||
@ -365,7 +365,7 @@ _kvm_vatop_pae(kvm_t *kd, u_long va, off_t *pa)
|
||||
if (PTD == 0) {
|
||||
s = _kvm_pa2off(kd, va, pa);
|
||||
if (s == 0) {
|
||||
_kvm_err(kd, kd->program,
|
||||
_kvm_err(kd, kd->program,
|
||||
"_kvm_vatop_pae: bootstrap data not in dump");
|
||||
goto invalid;
|
||||
} else
|
||||
|
@ -29,7 +29,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* ARM64 (AArch64) machine dependent routines for kvm and minidumps.
|
||||
* ARM64 (AArch64) machine dependent routines for kvm and minidumps.
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -27,7 +27,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* AMD64 machine dependent routines for kvm and minidumps.
|
||||
* AMD64 machine dependent routines for kvm and minidumps.
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -27,7 +27,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* AMD64 machine dependent routines for kvm and minidumps.
|
||||
* AMD64 machine dependent routines for kvm and minidumps.
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -286,6 +286,6 @@ _kvm_minidump_kvatop(kvm_t *kd, u_long va, off_t *pa)
|
||||
}
|
||||
if (kd->vmst->hdr.paemode)
|
||||
return (_kvm_minidump_vatop_pae(kd, va, pa));
|
||||
else
|
||||
else
|
||||
return (_kvm_minidump_vatop(kd, va, pa));
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2010 Oleksandr Tymoshenko
|
||||
* Copyright (c) 2010 Oleksandr Tymoshenko
|
||||
* Copyright (c) 2008 Semihalf, Grzegorz Bernacki
|
||||
* Copyright (c) 2006 Peter Wemm
|
||||
*
|
||||
|
@ -60,7 +60,7 @@ static struct nlist kvm_pcpu_nl[] = {
|
||||
|
||||
/*
|
||||
* Kernel per-CPU data state. We cache this stuff on the first
|
||||
* access.
|
||||
* access.
|
||||
*
|
||||
* XXXRW: Possibly, this (and kvmpcpu_nl) should be per-kvm_t, in case the
|
||||
* consumer has multiple handles in flight to differently configured
|
||||
|
@ -269,7 +269,7 @@ kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p,
|
||||
return (-1);
|
||||
}
|
||||
kp->ki_ppid = pproc.p_pid;
|
||||
} else
|
||||
} else
|
||||
kp->ki_ppid = 0;
|
||||
if (proc.p_pgrp == NULL)
|
||||
goto nopgrp;
|
||||
@ -345,7 +345,7 @@ kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p,
|
||||
* this field.
|
||||
*/
|
||||
#define pmap_resident_count(pm) ((pm)->pm_stats.resident_count)
|
||||
kp->ki_rssize = pmap_resident_count(&vmspace.vm_pmap);
|
||||
kp->ki_rssize = pmap_resident_count(&vmspace.vm_pmap);
|
||||
kp->ki_swrss = vmspace.vm_swrss;
|
||||
kp->ki_tsize = vmspace.vm_tsize;
|
||||
kp->ki_dsize = vmspace.vm_dsize;
|
||||
@ -400,12 +400,12 @@ kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p,
|
||||
kp->ki_sflag = 0;
|
||||
kp->ki_nice = proc.p_nice;
|
||||
kp->ki_traceflag = proc.p_traceflag;
|
||||
if (proc.p_state == PRS_NORMAL) {
|
||||
if (proc.p_state == PRS_NORMAL) {
|
||||
if (TD_ON_RUNQ(&mtd) ||
|
||||
TD_CAN_RUN(&mtd) ||
|
||||
TD_IS_RUNNING(&mtd)) {
|
||||
kp->ki_stat = SRUN;
|
||||
} else if (mtd.td_state ==
|
||||
} else if (mtd.td_state ==
|
||||
TDS_INHIBITED) {
|
||||
if (P_SHOULDSTOP(&proc)) {
|
||||
kp->ki_stat = SSTOP;
|
||||
|
Loading…
Reference in New Issue
Block a user