__LINE__ 、__FUNCTION__
用法:可以用于程序错误时打印错误位置
printf("行号:%d 函数名:%s \r\n", __LINE__, __FUNCTION__)
static int at24cxx_remove(struct i2c_client *clt)
{
int ret = 0;
printk("%s is call!\r\n", __FUNCTION__);
ret = misc_deregister(&xxx_dev);
if(ret < 0) {
printk("error misc_deregister\r\n");
}
return 0;
}