aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@gmail.com>2017-07-19 18:27:09 +0200
committerGitHub <noreply@github.com>2017-07-19 18:27:09 +0200
commit1e9794774b751d140a5b57cd8ae7b135e793d434 (patch)
tree5a277e8da0c3c6386009ef2e43545ad2b4c29f71
parent0107e4124d76088695cc3c6132072a3e604121a4 (diff)
parentd1e3265562438e4bd6c4a5d3d70ed336356ed5c3 (diff)
Merge pull request #287 from xairy/up-fix-repro-log
Small fixes in manager dashboard report
-rw-r--r--syz-manager/html.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/syz-manager/html.go b/syz-manager/html.go
index befcffc7e..1d3ba0bfb 100644
--- a/syz-manager/html.go
+++ b/syz-manager/html.go
@@ -253,14 +253,18 @@ func (mgr *Manager) httpReport(w http.ResponseWriter, r *http.Request) {
prog, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.prog"))
cprog, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.cprog"))
rep, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.report"))
- log, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.log"))
+ log, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.stats.log"))
stats, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.stats"))
- fmt.Fprintf(w, "Syzkaller hit '%s' bug on commit %s.\n\n", trimNewLines(desc), trimNewLines(tag))
+ commitDesc := ""
+ if len(tag) != 0 {
+ commitDesc = fmt.Sprintf(" on commit %s.", trimNewLines(tag))
+ }
+ fmt.Fprintf(w, "Syzkaller hit '%s' bug%s.\n\n", trimNewLines(desc), commitDesc)
if len(rep) != 0 {
guiltyFile := report.ExtractGuiltyFile(rep)
if guiltyFile != "" {
- fmt.Fprintf(w, "The guilty file is: %v.\n\n", guiltyFile)
+ fmt.Fprintf(w, "Guilty file: %v\n\n", guiltyFile)
maintainers, err := report.GetMaintainers(mgr.cfg.Kernel_Src, guiltyFile)
if err == nil {
fmt.Fprintf(w, "Maintainers: %v\n\n", maintainers)