diff options
author | Michael Pratt <mpratt@google.com> | 2018-06-25 18:16:20 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-25 18:17:17 -0700 |
commit | db94befb634b05aab0255214cd8c5eab0f5daaf2 (patch) | |
tree | bae423055e31241a78508d52916dfe7e64880aff | |
parent | 16882484f96f9d75348904bd5a4e2a53acb67378 (diff) |
Fix panic message
The arguments are backwards from the message.
PiperOrigin-RevId: 202054887
Change-Id: Id5750a84ca091f8b8fbe15be8c648d4fa3e31eb2
-rw-r--r-- | pkg/sentry/fs/dirent.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |