diff options
author | Andrew Morton <akpm@osdl.org> | 2006-01-14 03:05:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-23 20:28:13 -0500 |
commit | f73b5e7949945486a649e40821cd351e2f60bf02 (patch) | |
tree | 283ac7ae169d3341a300330404301bfc85059b80 /drivers/w1/w1.c | |
parent | ecd5136c85cb4531a51f65241e7b3cd58420f3ed (diff) |
[PATCH] W1: u64 is not long long
You don't know what type a u64 is, hence you cannot print it without a cast.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/w1.c')
-rw-r--r-- | drivers/w1/w1.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index 5def7fb903ac..d640c1e1f8cd 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c | |||
@@ -388,11 +388,14 @@ static int w1_uevent(struct device *dev, char **envp, int num_envp, char *buffer | |||
388 | if (dev->driver != &w1_slave_driver || !sl) | 388 | if (dev->driver != &w1_slave_driver || !sl) |
389 | return 0; | 389 | return 0; |
390 | 390 | ||
391 | err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size, &cur_len, "W1_FID=%02X", sl->reg_num.family); | 391 | err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size, |
392 | &cur_len, "W1_FID=%02X", sl->reg_num.family); | ||
392 | if (err) | 393 | if (err) |
393 | return err; | 394 | return err; |
394 | 395 | ||
395 | err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size, &cur_len, "W1_SLAVE_ID=%024LX", (u64)sl->reg_num.id); | 396 | err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size, |
397 | &cur_len, "W1_SLAVE_ID=%024LX", | ||
398 | (unsigned long long)sl->reg_num.id); | ||
396 | if (err) | 399 | if (err) |
397 | return err; | 400 | return err; |
398 | 401 | ||