From f052b73806bd417aa9548bfb9bf71ae64338ffa0 Mon Sep 17 00:00:00 2001
From: Luke Shumaker <lukeshu@lukeshu.com>
Date: Tue, 4 Apr 2023 09:21:04 -0600
Subject: btrfstree: Fix some error messages from NodeExpectations.Check

---
 lib/btrfs/btrfstree/node_exp.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'lib/btrfs')

diff --git a/lib/btrfs/btrfstree/node_exp.go b/lib/btrfs/btrfstree/node_exp.go
index dec6dbb..f20eee1 100644
--- a/lib/btrfs/btrfstree/node_exp.go
+++ b/lib/btrfs/btrfstree/node_exp.go
@@ -53,11 +53,11 @@ func (exp NodeExpectations) Check(node *Node) error {
 	} else {
 		if minItem, _ := node.MinItem(); exp.MinItem.OK && exp.MinItem.Val.Compare(minItem) > 0 {
 			errs = append(errs, fmt.Errorf("expected minItem>=%v but node has minItem=%v",
-				exp.MinItem, minItem))
+				exp.MinItem.Val, minItem))
 		}
 		if maxItem, _ := node.MaxItem(); exp.MaxItem.OK && exp.MaxItem.Val.Compare(maxItem) < 0 {
 			errs = append(errs, fmt.Errorf("expected maxItem<=%v but node has maxItem=%v",
-				exp.MaxItem, maxItem))
+				exp.MaxItem.Val, maxItem))
 		}
 	}
 	if len(errs) > 0 {
-- 
cgit v1.2.3-2-g168b