summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-11-06 17:31:20 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-11-06 17:31:20 +0000
commitdb813f3a5a58545cb030b0659b726b7a9dde9406 (patch)
tree367db21ae01d2d945e3914471995e2d05b98ab45 /sys/kern
parenta2f15149ddb6a1ad875f5d512b8b83e85a33dfe7 (diff)
printf debugging worked! figured out the bug (in free()) just after
committing the printfs. revert.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/exec_elf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index fdb671a179d..8b36d36ca36 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.103 2014/11/06 17:23:40 millert Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.104 2014/11/06 17:31:19 tedu Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -1002,7 +1002,6 @@ ELFNAMEEND(coredump)(struct proc *p, void *cookie)
psections = mallocarray(cs.npsections, sizeof(Elf_Phdr),
M_TEMP, M_WAITOK|M_ZERO);
psectionslen = cs.npsections * sizeof(Elf_Phdr);
- printf("coredump: malloc %zu bytes at %p\n", psectionslen, psections);
offset = sizeof(ehdr);
notestart = offset + psectionslen;
@@ -1076,7 +1075,6 @@ ELFNAMEEND(coredump)(struct proc *p, void *cookie)
}
out:
- printf("coredump: free %zu bytes at %p\n", psectionslen, psections);
free(psections, M_TEMP, psectionslen);
return (error);
#endif