From: Nick Craig-Wood <ncw@axis.demon.co.uk>
To: Vladimir Kondratiev <vladimir.kondratiev@intel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: __FUNCTION__ - patch for USB
Date: Thu, 10 Jan 2002 09:08:27 +0000 [thread overview]
Message-ID: <20020110090827.A9541@axis.demon.co.uk> (raw)
In-Reply-To: <3C3CC04D.2080807@intel.com>
In-Reply-To: <3C3CC04D.2080807@intel.com>; from vladimir.kondratiev@intel.com on Thu, Jan 10, 2002 at 12:12:29AM +0200
On Thu, Jan 10, 2002 at 12:12:29AM +0200, Vladimir Kondratiev wrote:
> Since I have started this thread, I feel I have to do something real.
> Dummy technical work, but someone have to do it, right?
> I patched USB subsystem, it uses __FUNCTION__ in deprecated way no more.
#ifdef DEBUG
-#define dbg(format, arg...) printk(KERN_DEBUG __FILE__ ": " format "\n" , ## arg)
+#define dbg(format, arg...) printk(KERN_DEBUG __FILE__ ":%s - " format "\n", __FUNCTION__, ## arg)
#else
I was going to suggest you use the C99 __func__ rather than
__FUNCTION__ but after a quick test it doesn't seem to be supported by
egcs-2.91.66 so I guess that is out for the time being? It is
supported by gcc-2.95 though.
--
Nick Craig-Wood
ncw@axis.demon.co.uk
prev parent reply other threads:[~2002-01-10 9:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-09 22:12 __FUNCTION__ - patch for USB Vladimir Kondratiev
2002-01-09 22:26 ` Greg KH
2002-01-10 10:52 ` Vladimir Kondratiev
2002-01-10 16:09 ` Greg KH
2002-01-11 12:23 ` Vladimir Kondratiev
2002-01-10 9:08 ` Nick Craig-Wood [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020110090827.A9541@axis.demon.co.uk \
--to=ncw@axis.demon.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=vladimir.kondratiev@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.