added a check on whether the dmesg log contains any data