The size of the static buffer in dev_id was only 8 bytes
(sizeof(long) * 2). This is completely bogus, so give
the buffer a sane length and also make sure we don't
write beyond the buffer using snprintf.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>