Date: Sat, 4 Nov 2006 05:04:06 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109213 for review Message-ID: <200611040504.kA4546mM099637@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109213 Change 109213 by jb@jb_freebsd8 on 2006/11/04 05:03:28 While debugging the new libelf for use with DTrace, I want to see where the errors are ocurring. Affected files ... .. //depot/projects/dtrace/src/lib/libelf/_libelf.h#12 edit Differences ... ==== //depot/projects/dtrace/src/lib/libelf/_libelf.h#12 (text+ko) ==== @@ -30,6 +30,7 @@ #define __LIBELF_H_ #include <sys/queue.h> +#include <stdio.h> #ifndef NULL #define NULL ((void *) 0) @@ -61,6 +62,7 @@ #define LIBELF_SET_ERROR(E, O) do { \ LIBELF_PRIVATE(error) = ((ELF_E_##E & LIBELF_ELF_ERROR_MASK)| \ ((O) << LIBELF_OS_ERROR_SHIFT)); \ + printf("Error %d in function %s line %d\n", ELF_E_##E, __FUNCTION__, __LINE__); \ } while (0) #define LIBELF_ADJUST_AR_SIZE(S) (((S) + 1U) & ~1U)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611040504.kA4546mM099637>