summaryrefslogtreecommitdiffstats
path: root/usr.bin/gcore/elfcore.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-11-01 06:35:36 +0000
committerjdp <jdp@FreeBSD.org>1998-11-01 06:35:36 +0000
commit0ad104691f9438f9ebdedb8d13f45c113c9408bc (patch)
treeb0d526e661601b2bf381492d9cd9c65231d99dba /usr.bin/gcore/elfcore.c
parent8bb5a3817f814c8be346d8357bd3b7d41d521ec3 (diff)
downloadFreeBSD-src-0ad104691f9438f9ebdedb8d13f45c113c9408bc.zip
FreeBSD-src-0ad104691f9438f9ebdedb8d13f45c113c9408bc.tar.gz
Fix errors detected by -Wformat.
Diffstat (limited to 'usr.bin/gcore/elfcore.c')
-rw-r--r--usr.bin/gcore/elfcore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c
index 1053841..af199ca 100644
--- a/usr.bin/gcore/elfcore.c
+++ b/usr.bin/gcore/elfcore.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: elfcore.c,v 1.1 1998/10/19 19:42:18 jdp Exp $
*/
#include <sys/param.h>
@@ -142,7 +142,8 @@ 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", nwant, ngot);
+ " wanted %d, got %d\n", memname,
+ nwant, ngot);
ngot = write(fd, buf, nwant);
if (ngot == -1)
err(1, "write of segment %d failed", i);
OpenPOWER on IntegriCloud