diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-06 17:31:20 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-06 17:31:20 +0000 |
commit | db813f3a5a58545cb030b0659b726b7a9dde9406 (patch) | |
tree | 367db21ae01d2d945e3914471995e2d05b98ab45 /sys/kern/exec_elf.c | |
parent | a2f15149ddb6a1ad875f5d512b8b83e85a33dfe7 (diff) |
printf debugging worked! figured out the bug (in free()) just after
committing the printfs. revert.
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r-- | sys/kern/exec_elf.c | 4 |
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 |