2012年9月26日 星期三

[code][Embedded System] How to print log into file

[code][Embedded System] How to print log into file



This is a example code :





snprintf(buf, sizeof(buf), "rm -rf %s/files.db %s/art_cache", db_path, db_path);

if( system(buf) != 0

DPRINTF(E_WARN, L_GENERAL, "Failed to clean old file cache.\n");

Related Posts:

0 意見:

張貼留言