Received: from mailserv2.iuinc.com (IDENT:qmailr@mailserv2.iuinc.com [206.245.164.55]) by puffin.external.hp.com (8.9.3/8.9.3) with SMTP id NAA30827 for ; Thu, 26 Oct 2000 13:50:16 -0600 Date: Thu, 26 Oct 2000 12:56:32 -0700 (PDT) From: Grant Grundler Message-Id: <200010261956.MAA22473@milano.cup.hp.com> To: drepper@redhat.com Cc: parisc-linux@thepuffingroup.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [parisc-linux] __FUNCTION__ revisited List-ID: Hi Ulrich, After RTFMing for a bit, I still think __FUNCTION__ is b0rken. Maybe I'm doing something else stupid that's obvious to you. In linux/arch/parisc/kernel/sba_ccio.c I have some debug output which can be enabled like this: #define DEBUG_SBA_RUN_SG I use that for: #ifdef DEBUG_SBA_RUN_SG #define DBG_RUN_SG(x...) printk(x) #else #define DBG_RUN_SG(x...) #endif and use DBG_RUN_SG() like this: DBG_RUN_SG("%s() DONE %d mappings\n", __FUNCTION__, n_mappings); The output I get looks like "() DONE 16 mappings". No complaints from compiler or linker. And despite the official change of __FUNCTION__'s data type almost 2 years ago in the developement branch, __FUNCTION__ was still being treated as a literal by our tool chain as late as August 3, 2000. I still have the c110 console output to prove it: -rw-rw---- 1 grundler users 12384 Aug 3 19:35 c110.out1 thanks, grant