Skip to content

Commit

Permalink
cmd/geth: remove redundant 0x in dbGet/dbDelete (ethereum#25315)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored and cp-wjhan committed Sep 25, 2023
1 parent fa0c972 commit 2f0dcff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/geth/dbcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func dbGet(ctx *cli.Context) error {

data, err := db.Get(key)
if err != nil {
log.Info("Get operation failed", "key", fmt.Sprintf("0x%#x", key), "error", err)
log.Info("Get operation failed", "key", fmt.Sprintf("%#x", key), "error", err)
return err
}
fmt.Printf("key %#x: %#x\n", key, data)
Expand Down Expand Up @@ -444,7 +444,7 @@ func dbDelete(ctx *cli.Context) error {
fmt.Printf("Previous value: %#x\n", data)
}
if err = db.Delete(key); err != nil {
log.Info("Delete operation returned an error", "key", fmt.Sprintf("0x%#x", key), "error", err)
log.Info("Delete operation returned an error", "key", fmt.Sprintf("%#x", key), "error", err)
return err
}
return nil
Expand Down

0 comments on commit 2f0dcff

Please sign in to comment.