commit | 6f33d58794ef4cef4b2c706029810f9688bd3026 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Thu Nov 22 12:30:25 2012 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Fri Dec 14 13:05:30 2012 +1030 |
tree | 9004029454efa12a5d662592bea16c54452130a0 | |
parent | d890f510c8e45aaf33b8737f211ea05aecb8b460 [diff] |
__UNIQUE_ID() Jan Beulich points out __COUNTER__ (gcc 4.3 and above), so let's use that to create unique ids. This is better than __LINE__ which we use today, so provide a wrapper. Stanislaw Gruszka <sgruszka@redhat.com> reported that some module parameters start with a digit, so we need to prepend when we for the unique id. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Jan Beulich <jbeulich@suse.com>