Skip to content

Commit

Permalink
Inline d_msg () to doc in access
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Sep 14, 2023
1 parent a1464e1 commit 929b658
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/domains/access.ml
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ let print_accesses memo grouped_accs =
let race_threshold = get_int "warn.race-threshold" in
let msgs race_accs =
let h A.{conf; kind; node; exp; acc} =
let d_msg () = dprintf "%a with %a (conf. %d)" AccessKind.pretty kind MCPAccess.A.pretty acc conf in
let doc = dprintf "%t (exp: %a)" d_msg d_exp exp in
let doc = dprintf "%a with %a (conf. %d) (exp: %a)" AccessKind.pretty kind MCPAccess.A.pretty acc conf d_exp exp in
(doc, Some (Messages.Location.Node node))
in
AS.elements race_accs
Expand Down

0 comments on commit 929b658

Please sign in to comment.