mirror of https://github.com/encounter/objdiff.git
cli report: Generate virtual addresses as uppercase
Matches dtk symbols.txt and most projects' identifiers.
This commit is contained in:
parent
5cfd04fd4f
commit
54fb451337
|
@ -474,7 +474,7 @@ fn read_report(path: &Path) -> Result<Report> {
|
||||||
fn serialize_hex<S>(x: &Option<u64>, s: S) -> Result<S::Ok, S::Error>
|
fn serialize_hex<S>(x: &Option<u64>, s: S) -> Result<S::Ok, S::Error>
|
||||||
where S: serde::Serializer {
|
where S: serde::Serializer {
|
||||||
if let Some(x) = x {
|
if let Some(x) = x {
|
||||||
s.serialize_str(&format!("{:#x}", x))
|
s.serialize_str(&format!("{:#X}", x))
|
||||||
} else {
|
} else {
|
||||||
s.serialize_none()
|
s.serialize_none()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue