git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
acpi
/
platform
/
acgcc.h
diff --git
a/include/acpi/platform/acgcc.h
b/include/acpi/platform/acgcc.h
index
91fda36
..
da80933
100644
(file)
--- a/
include/acpi/platform/acgcc.h
+++ b/
include/acpi/platform/acgcc.h
@@
-5,7
+5,7
@@
*****************************************************************************/
/*
*****************************************************************************/
/*
- * Copyright (C) 2000 - 200
5
, R. Byron Moore
+ * Copyright (C) 2000 - 200
6
, R. Byron Moore
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-44,16
+44,22
@@
#ifndef __ACGCC_H__
#define __ACGCC_H__
#ifndef __ACGCC_H__
#define __ACGCC_H__
-/* This macro is used to tag functions as "printf-like" because
+/* Function name is used for debug output. Non-ANSI, compiler-dependent */
+
+#define ACPI_GET_FUNCTION_NAME __FUNCTION__
+
+/*
+ * This macro is used to tag functions as "printf-like" because
* some compilers (like GCC) can catch printf format string problems.
*/
* some compilers (like GCC) can catch printf format string problems.
*/
-#define ACPI_PRINTF_LIKE
_FUNC __attribute__ ((__format__ (__printf__, 4, 5
)))
+#define ACPI_PRINTF_LIKE
(c) __attribute__ ((__format__ (__printf__, c, c+1
)))
-/* Some compilers complain about unused variables. Sometimes we don't want to
- * use all the variables (most specifically for _THIS_MODULE). This allow us
+/*
+ * Some compilers complain about unused variables. Sometimes we don't want to
+ * use all the variables (for example, _acpi_module_name). This allows us
* to to tell the compiler warning in a per-variable manner that a variable
* is unused.
*/
#define ACPI_UNUSED_VAR __attribute__ ((unused))
* to to tell the compiler warning in a per-variable manner that a variable
* is unused.
*/
#define ACPI_UNUSED_VAR __attribute__ ((unused))
-#endif /* __ACGCC_H__ */
+#endif
/* __ACGCC_H__ */