tree d990e8d99830ebb1d60f36a23512b3cd838a8585 parent 8523ff45672a5c9209ab7459142e37e7cd393e6c author [EMAIL PROTECTED] <[EMAIL PROTECTED]> Tue, 19 Apr 2005 11:16:57 -0700 committer Greg KH <[EMAIL PROTECTED]> Tue, 19 Apr 2005 11:16:57 -0700
[PATCH] w1_smem: w1 ID is only 8 bytes long. w1 ID is only 8 bytes long. Signed-off-by: Evgeniy Polyakov <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> w1/w1_smem.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: drivers/w1/w1_smem.c =================================================================== --- 29b32fbb32911f3aecf347675b7283b6269e7fda/drivers/w1/w1_smem.c (mode:100644 sha1:ab82eb7ed74f73061cdb630eda275d3aea0fe208) +++ d990e8d99830ebb1d60f36a23512b3cd838a8585/drivers/w1/w1_smem.c (mode:100644 sha1:a54e425217a06736cdf873e8a914b434eb30a6ce) @@ -60,7 +60,7 @@ int i; ssize_t count = 0; - for (i = 0; i < 9; ++i) + for (i = 0; i < 8; ++i) count += sprintf(buf + count, "%02x ", ((u8 *)&sl->reg_num)[i]); count += sprintf(buf + count, "\n"); @@ -87,7 +87,7 @@ count = 0; goto out; } - for (i = 0; i < 9; ++i) + for (i = 0; i < 8; ++i) count += sprintf(buf + count, "%02x ", ((u8 *)&sl->reg_num)[i]); count += sprintf(buf + count, "\n"); - To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html