开发者

__android_log_print printing with out '/n' newline CR

开发者 https://www.devze.com 2023-02-05 13:50 出处:网络
WHen in native code __android_log_print() is used it prints adds an /n at the end of the text. I am trying to get the same behavior as printf, where when /n not used it prints the next sting on the s

WHen in native code __android_log_print() is used it prints adds an /n at the end of the text.

I am trying to get the same behavior as printf, where when /n not used it prints the next sting on the same line.

I need to write a data dump so I need to be able to to structure the data. Now, I know I can store things in a temp buffer but I don't want to do that.

As I am working on an embedded device with an extremely small runt开发者_开发技巧ime memory.


You should consider whether the __android_log_print() function is appropriate to use for dumping data. It's conventional for logging functions that they output whole lines for each call.

0

精彩评论

暂无评论...
验证码 换一张
取 消