Module Name: src Committed By: christos Date: Fri Dec 24 23:12:29 UTC 2010
Modified Files: src/sys/lib/libsa: stand.h Log Message: panic takes a printf format too. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/sys/lib/libsa/stand.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libsa/stand.h diff -u src/sys/lib/libsa/stand.h:1.69 src/sys/lib/libsa/stand.h:1.70 --- src/sys/lib/libsa/stand.h:1.69 Thu Mar 19 06:20:54 2009 +++ src/sys/lib/libsa/stand.h Fri Dec 24 18:12:28 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: stand.h,v 1.69 2009/03/19 10:20:54 tsutsui Exp $ */ +/* $NetBSD: stand.h,v 1.70 2010/12/24 23:12:28 christos Exp $ */ /* * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved. @@ -238,7 +238,8 @@ int getfile(char *prompt, int mode); char *strerror(int); __dead void exit(int); -__dead void panic(const char *, ...); +__dead void panic(const char *, ...) + __attribute__((__format__(__printf__, 1, 2))); __dead void _rtt(void); void *memcpy(void *, const void *, size_t); void *memmove(void *, const void *, size_t);