diff --git a/cmd/aa-log/main.go b/cmd/aa-log/main.go index cbc59c9e..dde4e2ca 100644 --- a/cmd/aa-log/main.go +++ b/cmd/aa-log/main.go @@ -67,11 +67,11 @@ func aaLog(logger string, path string, profile string) error { aaLogs := logs.NewApparmorLogs(file, profile) if rules { profiles := aaLogs.ParseToProfiles() - for _, profile := range profiles { - profile.MergeRules() - profile.Sort() - profile.Format() - fmt.Print(profile.String() + "\n") + for _, p := range profiles { + p.Merge() + p.Sort() + p.Format() + fmt.Print(p.String() + "\n\n") } } else { fmt.Print(aaLogs.String())