Skip to content

Commit

Permalink
fix display bug when -l and -e little are combined (highlighted in #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
abarisani committed Apr 12, 2022
1 parent 5ba70ca commit 837bdb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/crucible/crucible.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ func read(tag string, f *fusemap.FuseMap, name string) (err error) {
fmt.Println(value)
} else if conf.list {
if reg, ok := f.Registers[name]; ok {
if conf.endianness == "little" {
res = util.SwitchEndianness(res)
}

log.Println()
log.Print(reg.BitMap(res))
}
Expand Down

0 comments on commit 837bdb6

Please sign in to comment.