]> err.no Git - linux-2.6/commitdiff
[PATCH] W1: u64 is not long long
authorAndrew Morton <akpm@osdl.org>
Sat, 14 Jan 2006 08:05:59 +0000 (00:05 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 24 Mar 2006 01:28:13 +0000 (17:28 -0800)
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>
drivers/w1/w1.c

index 5def7fb903aca80b19d8119ed351a561e1385a86..d640c1e1f8cdc77dac3ac23dd86547a338710b3c 100644 (file)
@@ -388,11 +388,14 @@ static int w1_uevent(struct device *dev, char **envp, int num_envp, char *buffer
        if (dev->driver != &w1_slave_driver || !sl)
                return 0;
 
-       err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size, &cur_len, "W1_FID=%02X", sl->reg_num.family);
+       err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size,
+                       &cur_len, "W1_FID=%02X", sl->reg_num.family);
        if (err)
                return err;
 
-       err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size, &cur_len, "W1_SLAVE_ID=%024LX", (u64)sl->reg_num.id);
+       err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size,
+                       &cur_len, "W1_SLAVE_ID=%024LX",
+                       (unsigned long long)sl->reg_num.id);
        if (err)
                return err;