Microsemi / switchtec-user

Userspace code for the Microsemi PCIe switch
MIT License
46 stars 48 forks source link

Add NULL file check in 'log-parse' command #300

Closed xyan264 closed 2 years ago

xyan264 commented 2 years ago

The input log file being empty is a frequent issue for 'log-parse' command.

We add this extra checking to ensure it's handled nicely.