diff options
Diffstat (limited to 'pkg/csource')
| -rw-r--r-- | pkg/csource/csource.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index c8513286f..75b5a5e02 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -239,7 +239,12 @@ func (ctx *context) emitCall(w *bytes.Buffer, call prog.ExecCall, ci int, haveCo } fmt.Fprintf(w, "0") } - fmt.Fprintf(w, ");\n") + fmt.Fprintf(w, ");") + comment := ctx.target.AnnotateCall(call) + if len(comment) != 0 { + fmt.Fprintf(w, " /* %s */", comment) + } + fmt.Fprintf(w, "\n") if trace { cast := "" if !native && !strings.HasPrefix(callName, "syz_") { |
