diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2011-06-18 22:16:55 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2011-06-18 22:16:55 +0000 |
commit | 80905c3568d6aaf6d9cdaecb824b42e445ad1917 (patch) | |
tree | 222e335aaea0acb71af47cdd2bd616244ea970ec /lib/libprocstat/libprocstat.c | |
parent | 1696274411f145aac745b146cc3edc2fd32740ae (diff) | |
download | src-80905c3568d6aaf6d9cdaecb824b42e445ad1917.tar.gz src-80905c3568d6aaf6d9cdaecb824b42e445ad1917.zip |
Notes
Diffstat (limited to 'lib/libprocstat/libprocstat.c')
-rw-r--r-- | lib/libprocstat/libprocstat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c index f8e5516c6641..65e170de7280 100644 --- a/lib/libprocstat/libprocstat.c +++ b/lib/libprocstat/libprocstat.c @@ -229,7 +229,7 @@ procstat_getprocs(struct procstat *procstat, int what, int arg, *count = len / sizeof(*p); return (p); } else { - warnx("unknown access method"); + warnx("unknown access method: %d", procstat->type); return (NULL); } fail: @@ -726,7 +726,7 @@ procstat_get_pipe_info(struct procstat *procstat, struct filestat *fst, } else if (procstat->type == PROCSTAT_SYSCTL) { return (procstat_get_pipe_info_sysctl(fst, ps, errbuf)); } else { - warnx("unknow access method: %d", procstat->type); + warnx("unknown access method: %d", procstat->type); snprintf(errbuf, _POSIX2_LINE_MAX, "error"); return (1); } @@ -790,7 +790,7 @@ procstat_get_pts_info(struct procstat *procstat, struct filestat *fst, } else if (procstat->type == PROCSTAT_SYSCTL) { return (procstat_get_pts_info_sysctl(fst, pts, errbuf)); } else { - warnx("unknow access method: %d", procstat->type); + warnx("unknown access method: %d", procstat->type); snprintf(errbuf, _POSIX2_LINE_MAX, "error"); return (1); } @@ -852,7 +852,7 @@ procstat_get_vnode_info(struct procstat *procstat, struct filestat *fst, } else if (procstat->type == PROCSTAT_SYSCTL) { return (procstat_get_vnode_info_sysctl(fst, vn, errbuf)); } else { - warnx("unknow access method: %d", procstat->type); + warnx("unknown access method: %d", procstat->type); snprintf(errbuf, _POSIX2_LINE_MAX, "error"); return (1); } @@ -1059,7 +1059,7 @@ procstat_get_socket_info(struct procstat *procstat, struct filestat *fst, } else if (procstat->type == PROCSTAT_SYSCTL) { return (procstat_get_socket_info_sysctl(fst, sock, errbuf)); } else { - warnx("unknow access method: %d", procstat->type); + warnx("unknown access method: %d", procstat->type); snprintf(errbuf, _POSIX2_LINE_MAX, "error"); return (1); } |