Clear dmesg Buffer

dmesg -c

This can be used to get the messages presented during a period, for example:

dmesg -c > /dev/null
${RUN_TEST}
dmesg -c > relevant_messages.log