Re: __FILE__ gets expanded to absolute pathname

From: Alistair John Strachan
Date: Tue Apr 25 2006 - 07:03:34 EST


On Tuesday 25 April 2006 08:44, Denis Vlasenko wrote:
> Sometime ago I noticed that __FILE__ gets expanded into
> *absolute* pathname if one builds kernel in separate object directory.
>
> I thought a bit about it but failed to arrive at any sensible
> solution.
>
> Any thoughs?

Sounds to me like in-tree users of __FILE__ should be audited. Those using
them for print statements about how unhappy they are should probably be
revised to "drivername: <message>"..

--
Cheers,
Alistair.

Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/