mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix panic message
The arguments are backwards from the message. PiperOrigin-RevId: 202054887 Change-Id: Id5750a84ca091f8b8fbe15be8c648d4fa3e31eb2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user