[PATCH 08/20] dtoc: Output the device in a separate function