tools: record: fix dmi recording
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 9 Mar 2020 00:16:04 +0000 (10:16 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 9 Mar 2020 00:20:49 +0000 (10:20 +1000)
commit850925910f7f6db16f0aa645892d9121760de7b2
tree82da527f2c3f1500aacb39f413a7382728ef827c
parenta1c8909337766a85d916ffd3aba69b119f7848dd
tools: record: fix dmi recording

Processing os-release in the same buffer that the dmi modalias used caused the
dmi to be recorded as 'dmi: "VERSION_ID=31"'. The cause for that was simply
that the dmi modalias was read but not printed until after the os-release
information was processed.

Fix this two-fold: rearrange that each part now reads and prints in
one go, and rename the buffers so we don't re-use them.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-record.c