dmesg.c cleaned up old code