miitool: Don't print negative parent IDs
Do not include ID of the parent to mii_bus if that ID is negative since
it produces a rather confusing string (e.g. "mdio.11-1", which is very
likely to be interpreted as "mdio.11<dash>1").

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 109543c commit b88381df6ef2930fb6072489b93b1fc31257162a
@Andrey Smirnov Andrey Smirnov authored on 31 Jan 2016
Sascha Hauer committed on 3 Feb 2016
Showing 1 changed file
View
commands/miitool.c