Then I suppose that you've checked that never in kernel printk arguments
have side effects, don't you ;-)
printk("%d", p());
printk("%d", a++);
etc.
You're changing semantics of a well known function and also if you don't
broke anything now, what grants this for the future?
You need also a big warning in printk documentation: "Note that
arguments may to be not evaluated" and hope everybody note it.
I'd prefer to rely on modern compiler smartness.
-- Abramo Bagnara mailto:abramo@alsa-project.orgOpera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy
ALSA project is http://www.alsa-project.org sponsored by SuSE Linux http://www.suse.com
It sounds good! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/