Re: source code transform

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Harvey Harrison <harvey.harrison@xxxxxxxxx> writes:

> On Thu, 2009-01-08 at 17:45 -0600, Yoann Padioleau wrote:
>> Johannes Berg <johannes@xxxxxxxxxxxxxxxx> writes:
>
>> @@
>> identifier f;
>> @@
>> 
>>  f(...)
>>  { 
>> + fprintf(stderr, "%s: %s()\n", __FILE__, __FUNCTION__);
>>  ...
>>  }
>> 
>
> Personal pet-peeve, use __func__, not __FUNCTION__.
>
> __func__ is C, __FUNCTION__ is a gcc-extension.

Ok. Is there also a __file__, and __line__ ? If this
not the case then I would rather keep my __FUNCTION__, 
it's estetically more consistent.

>
> Cheers,
>
> Harvey
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux