Thread
:
N900 will not allow USB OTG!
View Single Post
hcm
2010-05-30 , 15:55
Posts: 75 | Thanked: 78 times | Joined on Jan 2010 @ Germany
#
984
I used some perl magic to grant DocScrutinizers wish of having DBG-statements in every function in usb/.
just call the attached perl-script with a parameter (either a single .c file or a directory => it will recursively process each .c file).
the script makes a backup of each .c file and adds DBG-statements in every function and before every return-statement or end of function.
ATTENTION: the script uses the program "indent" to generate homogeneous code to avoid parsing errors (the "parser" is not very foolproof). The program must thus be installed, and the line-numbers may not be the same as in the original source-files.
Attached Files
insert_dbg.pl.txt
(1.7 KB, 175 views)
The Following User Says Thank You to hcm For This Useful Post:
joerg_rw
hcm
View Public Profile
Send a private message to hcm
Find all posts by hcm