intel_reg_dumper: use none instead of NULL if no port is assigned to TRANS_DP
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 Oct 2011 18:37:25 +0000 (11:37 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 Oct 2011 18:37:25 +0000 (11:37 -0700)
Makes the output a little more readable.

tools/intel_reg_dumper.c

index f6695a9..75b3bc1 100644 (file)
@@ -1427,6 +1427,9 @@ DEBUGSTRING(snb_debug_trans_dp_ctl)
        case TRANS_DP_PORT_SEL_D:
                port = "D";
                break;
+       default:
+               port = "none";
+               break;
        }
 
        switch (val & (7<<9)) {