commit | 8ad8699afe69171234fef1f2a176a6a20771bdfc | [log] [tgz] |
---|---|---|
author | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Fri May 09 16:33:28 2014 -0700 |
committer | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Fri May 09 16:35:39 2014 -0700 |
tree | 8976449f1276bb299c7b92b33a93bf5e96f7ea34 | |
parent | 5c411dfa7f649b4a50e95fbde586244ac7b4b1c7 [diff] [blame] |
java_gen/U* types: change toString to hex We mostly use the U* classes to represent non-numeric data. Hex strings seem like a more useful representation.
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U32.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U32.java index 7f53374..c69786c 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U32.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U32.java
@@ -61,7 +61,7 @@ @Override public String toString() { - return "" + f(raw); + return String.format("0x%08x", raw); } @Override