diff options
author | charnier <charnier@FreeBSD.org> | 2002-03-26 12:26:59 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2002-03-26 12:26:59 +0000 |
commit | bcc2ba266141bfe9b637aa4ccbfa8ed3943fcd85 (patch) | |
tree | 5ef6ac3d803a65580c8e0f20d52eb7592791edcf /usr.bin/gcore/elfcore.c | |
parent | b3b51db2eb1b7e25a1d071dba4ddecd88145716f (diff) | |
download | FreeBSD-src-bcc2ba266141bfe9b637aa4ccbfa8ed3943fcd85.zip FreeBSD-src-bcc2ba266141bfe9b637aa4ccbfa8ed3943fcd85.tar.gz |
Add FBSDID. Do not \n terminate err() strings. Spelling.
Diffstat (limited to 'usr.bin/gcore/elfcore.c')
-rw-r--r-- | usr.bin/gcore/elfcore.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index bcbbad6..ef98a69 100644 --- a/usr.bin/gcore/elfcore.c +++ b/usr.bin/gcore/elfcore.c @@ -22,10 +22,11 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <sys/param.h> #include <sys/procfs.h> #include <machine/elf.h> @@ -140,7 +141,7 @@ elf_coredump(int fd, pid_t pid) err(1, "read from %s", memname); if (ngot < nwant) errx(1, "short read from %s:" - " wanted %d, got %d\n", memname, + " wanted %d, got %d", memname, nwant, ngot); ngot = write(fd, buf, nwant); if (ngot == -1) @@ -307,7 +308,7 @@ elf_puthdr(vm_map_entry_t map, void *dst, size_t *off, const prstatus_t *status, */ phdr = (Elf_Phdr *)((char *)dst + phoff); - /* The note segement. */ + /* The note segment. */ phdr->p_type = PT_NOTE; phdr->p_offset = noteoff; phdr->p_vaddr = 0; @@ -448,7 +449,7 @@ readmap(pid_t pid) /* * Procfs requires (for consistency) that the entire memory map - * be read with a single read() call. Start with a reasonbly sized + * be read with a single read() call. Start with a reasonably sized * buffer, and double it until it is big enough. */ bufsize = 8 * 1024; |