mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-24 11:59:58 +00:00
prog: extend some error messages
This commit is contained in:
parent
bc09be4253
commit
4bad061006
@ -371,7 +371,7 @@ func (target *Target) defaultArg(t Type) Arg {
|
|||||||
}
|
}
|
||||||
return MakePointerArg(t, 0, target.defaultArg(typ.Type))
|
return MakePointerArg(t, 0, target.defaultArg(typ.Type))
|
||||||
default:
|
default:
|
||||||
panic("unknown arg type")
|
panic(fmt.Sprintf("unknown arg type: %#v", t))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,7 +385,7 @@ func (target *Target) isDefaultArg(arg Arg) bool {
|
|||||||
case *IntType, *ConstType, *FlagsType, *LenType, *ProcType, *CsumType:
|
case *IntType, *ConstType, *FlagsType, *LenType, *ProcType, *CsumType:
|
||||||
return a.Val == t.Default()
|
return a.Val == t.Default()
|
||||||
default:
|
default:
|
||||||
panic("unknown const type")
|
panic(fmt.Sprintf("unknown const type: %#v", t))
|
||||||
}
|
}
|
||||||
case *GroupArg:
|
case *GroupArg:
|
||||||
if !a.fixedInnerSize() {
|
if !a.fixedInnerSize() {
|
||||||
@ -427,7 +427,7 @@ func (target *Target) isDefaultArg(arg Arg) bool {
|
|||||||
case *VmaType:
|
case *VmaType:
|
||||||
return a.Address == 0 && a.VmaSize == target.PageSize
|
return a.Address == 0 && a.VmaSize == target.PageSize
|
||||||
default:
|
default:
|
||||||
panic("unknown pointer type")
|
panic(fmt.Sprintf("unknown pointer type: %#v", t))
|
||||||
}
|
}
|
||||||
case *ResultArg:
|
case *ResultArg:
|
||||||
t := a.Type().(*ResourceType)
|
t := a.Type().(*ResourceType)
|
||||||
|
Loading…
Reference in New Issue
Block a user