loganalyse.py: fix the primary fi issue

Signed-off-by: Dong Zhu <bluezhudong@gmail.com>