Open pr_debug of fixed files and pr_debug of fixed files
In the driver, pr_debug is defined in kernel/include/linux/printk. h.
/* If you are writing a driver, please usedev_dbg instead */
# If defined (CONFIG_DYNAMIC_DEBUG)
/* Dynamic_pr_debug () uses pr_fmt () internally so we don't need it here */
# Define pr_debug (fmt ,...)\
Dynamic_pr_debug (fmt, ##__ VA_ARGS __)
# Elif defined (DEBUG)
# Define pr_debug (fmt ,...)\
Printk (kern_debuupl_fmt (fmt), ##__ VA_ARGS __)
# Else
# Define pr_debug (fmt ,...)\
No_printk (kern_debuupl_fmt (fmt), ##__ VA_ARGS __)
# Endif
Add ccflag + y = -- ddebug to the makefile file.
Or dedicated macro control
Ccflag + $ (CONFIG_AUDIO_CODEC) = -- DDEBUG
All logs can be opened, but too many logs may cause system analysis inconvenience for multiple android files. To facilitate opening the log of the required module, I need to re-define in the file where the log needs to be opened.
#ifdef pr_debug#undef pr_debug#define pr_debug(fmt, ...) \printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)#else#define pr_debug(fmt, ...) \printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)#endif
In this way, the corresponding log in the source code can be debugged easily, avoiding the workload of opening one by one.
Fixed file Opening Method
Simple
Click the "Start" menu, point to "Settings", click "Control Panel", and then open the folder option (there is also a simple method to open the folder option dialog box: open "my computer" from the desktop, click the "Tools" menu, and you will see the "Folder Options" in the drop-down menu. Refer to the XP system. If other systems, it may not be in the "Tools" menu. Find it in the "View" menu)
In the pop-up dialog box, click the "file type" tab, find the extension of the file you just fixed in the following list, and click Select, then, click the "delete" button below to delete it, and close the dialog box.
In this case, the file with the extension will change to an unknown file format. Double-click the file to open the file. However, it is possible that the icon of this file remains unchanged. Generally, the icon of the original file in unknown format will be restored after the next boot. If you want to restore the icon without restarting, you can use the task manager to end the "explorer" process, and then click "file"-"New task (run ...)", Enter explorer and click OK.
Note: 1. If you encounter this problem in the future, pay attention to the check mark before "always use the selected program to open this file" when selecting the opening method.
2. if you forget the extension of the file in the unknown format just now in the second step, but the extension is not displayed due to the option of opening, you can solve the problem as follows: open the folder where the file is located, click the Start menu, and click Run ...", A run dialog box is displayed. Right-click and hold the file and drag it to the text box next to "open" in the run dialog box, at this time, the detailed path of the file will be displayed, and the extension of the file will also be displayed.
Fixed file opening Methods
In software Manager 360-advanced tools-set default Software
You can set the default player and so on. The method is simple and easy to use.
It should be set by the software itself. Different software are associated at startup to check whether it is the default ~ Just cancel those options.
Wish you success