[phantom] Add line count limit to phantom_dmesg()