fixed get device name.

Signed-off-by: Achim Königs <garfonso@mobo.info>