From db94befb634b05aab0255214cd8c5eab0f5daaf2 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Mon, 25 Jun 2018 18:16:20 -0700 Subject: Fix panic message The arguments are backwards from the message. PiperOrigin-RevId: 202054887 Change-Id: Id5750a84ca091f8b8fbe15be8c648d4fa3e31eb2 --- pkg/sentry/fs/dirent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sentry/fs/dirent.go b/pkg/sentry/fs/dirent.go index b56437b3c..739ae1d2d 100644 --- a/pkg/sentry/fs/dirent.go +++ b/pkg/sentry/fs/dirent.go @@ -964,7 +964,7 @@ func direntReaddir(ctx context.Context, d *Dirent, it DirIterator, root *Dirent, offset -= 2 newOffset, err := it.IterateDir(ctx, dirCtx, int(offset)) if int64(newOffset) < offset { - panic(fmt.Sprintf("node.Readdir returned offset %v less that input offset %v", offset, newOffset)) + panic(fmt.Sprintf("node.Readdir returned offset %v less than input offset %v", newOffset, offset)) } // Add the initial nodes back to the offset count. newOffset += 2 -- cgit v1.2.3