aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>2002-03-26 12:26:59 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>2002-03-26 12:26:59 +0000
commited68d15dcc25402fea27856b07b626da4a392d61 (patch)
tree5ef6ac3d803a65580c8e0f20d52eb7592791edcf
parent33c70aa5f7be7c4cc66272a7cb02ac63ffbcd3dd (diff)
downloadsrc-ed68d15dcc25402fea27856b07b626da4a392d61.tar.gz
src-ed68d15dcc25402fea27856b07b626da4a392d61.zip
Add FBSDID. Do not \n terminate err() strings. Spelling.
Notes
Notes: svn path=/head/; revision=93215
-rw-r--r--usr.bin/gcore/elfcore.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c
index bcbbad6a5483..ef98a693223d 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;