Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri committed Mar 28, 2024
1 parent 2ae68fb commit 850d561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func (l *RawLink) Info() (*Info, error) {
// and when it supported link info interface. We can detect
// that with kprobe multi specific Count field being zero.
if kprobeMultiInfo.Count == 0 {
return nil, fmt.Errorf("kprobe multi link info: %s", ErrNotSupported)
return nil, fmt.Errorf("kprobe multi link info: %w", ErrNotSupported)
}
extra = &KprobeMultiInfo{
Count: kprobeMultiInfo.Count,
Expand All @@ -522,7 +522,7 @@ func (l *RawLink) Info() (*Info, error) {
// when it supported link info interface. We can detect that
// with kprobe specific Addr field being zero.
if kprobeInfo.Addr == 0 {
return nil, fmt.Errorf("perf event link info: %s", ErrNotSupported)
return nil, fmt.Errorf("perf event link info: %w", ErrNotSupported)
}
extra2 = &KprobeInfo{
Addr: kprobeInfo.Addr,
Expand Down

0 comments on commit 850d561

Please sign in to comment.