android 打印日志:函数名+行号
Log.d(tag,"func:"+new Exception().getStackTrace()[0].getMethodName()+" \
-- line:"+Thread.currentThread().getStackTrace()[2].getLineNumber()); //函数名,行号
C/C++打印函数名+行号
printf("文件名%s-行号%d-函数名%s \n"__FILE__, __LINE__, __FUNCTION__);