mirror of
https://github.com/thecompu/Driv3rs.git
synced 2024-05-31 01:41:36 +00:00
Thought better of logging the csv. Changed to the input file.
This commit is contained in:
parent
5f75a5ea09
commit
7336257383
|
@ -273,14 +273,14 @@ SOSfile.close()
|
||||||
exists = os.path.exists(output_csv)
|
exists = os.path.exists(output_csv)
|
||||||
if exists == False:
|
if exists == False:
|
||||||
csvout = open(output_csv, 'w')
|
csvout = open(output_csv, 'w')
|
||||||
csvout.write('output_csv,comment_start,comment_len,comment_txt,\
|
csvout.write('SOS_DRIVER_FILE,comment_start,comment_len,comment_txt,\
|
||||||
dib_start,link_ptr,entry,name_len,name,flag,slot_num,num_devices,unit,\
|
dib_start,link_ptr,entry,name_len,name,flag,slot_num,num_devices,unit,\
|
||||||
dev_type,block_num,mfg,version\n')
|
dev_type,block_num,mfg,version\n')
|
||||||
else:
|
else:
|
||||||
csvout = open(output_csv, 'a')
|
csvout = open(output_csv, 'a')
|
||||||
|
|
||||||
for i in range(0,len(drivers_list)):
|
for i in range(0,len(drivers_list)):
|
||||||
csvout.write(output_csv + ',' + \
|
csvout.write(disk_img + ',' + \
|
||||||
hex(drivers_list[i]['comment_start']) + ',' + \
|
hex(drivers_list[i]['comment_start']) + ',' + \
|
||||||
hex(drivers_list[i]['comment_len']) + ',' + \
|
hex(drivers_list[i]['comment_len']) + ',' + \
|
||||||
drivers_list[i]['comment_txt'] + ',' + \
|
drivers_list[i]['comment_txt'] + ',' + \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user