Skip to content

Commit

Permalink
Add PRINTF_ARGS to kprintf
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Jul 31, 2018
1 parent e4aca22 commit ae83c35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addr2line.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
**********************************************************************/

#include "ruby/config.h"
#include "ruby/defines.h"
#include "ruby/missing.h"
#include "addr2line.h"

Expand Down Expand Up @@ -104,7 +105,7 @@ void *alloca();
#define SHF_COMPRESSED 0
#endif

static int kprintf(const char *fmt, ...);
PRINTF_ARGS(static int kprintf(const char *fmt, ...), 1, 2);

typedef struct {
const char *dirname;
Expand Down
1 change: 1 addition & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ help: PHONY
addr2line.$(OBJEXT): {$(VPATH)}addr2line.c
addr2line.$(OBJEXT): {$(VPATH)}addr2line.h
addr2line.$(OBJEXT): {$(VPATH)}config.h
addr2line.$(OBJEXT): {$(VPATH)}defines.h
addr2line.$(OBJEXT): {$(VPATH)}missing.h
array.$(OBJEXT): $(hdrdir)/ruby/ruby.h
array.$(OBJEXT): $(top_srcdir)/include/ruby.h
Expand Down

0 comments on commit ae83c35

Please sign in to comment.