}\r
#else\r
char *tempBuf = (char *)kmalloc(512, GFP_KERNEL);\r
- char bd_addr[6] = {0};\r
+ char bd_addr[7] = {0};\r
int i;\r
\r
GetSNSectorInfo(tempBuf);\r
}\r
\r
\r
+ //printk("%s: ====> get bt addr from flash=[%02x:%02x:%02x:%02x:%02x:%02x]\n", __FUNCTION__,\r
+ // bd_addr[5], bd_addr[4], bd_addr[3], bd_addr[2], bd_addr[1], bd_addr[0]);\r
if(copy_to_user(argp, bd_addr, 6))\r
- {\r
- printk("ERROR: copy_to_user---%s\n", __FUNCTION__);\r
+ {\r
+ printk("ERROR: copy_to_user---%s\n", __FUNCTION__);\r
kfree(tempBuf);\r
- return -EFAULT;\r
+ return -EFAULT;\r
}\r
\r
kfree(tempBuf);\r