[quandary] fix formatting of endpoint traces, again

Reviewed By: jeremydubreil

Differential Revision: D7678443

fbshipit-source-id: 19ece43
master
Sam Blackshear 7 years ago committed by Facebook Github Bot
parent 49b4a26a93
commit 1d792f0b48

@ -179,17 +179,17 @@ module SourceKind = struct
let pp fmt = function
| Endpoint (formal_name, _) ->
F.fprintf fmt "Endpoint\\[%s\\]" (Mangled.to_string formal_name)
F.fprintf fmt "Endpoint(%s)" (Mangled.to_string formal_name)
| EnvironmentVariable ->
F.fprintf fmt "EnvironmentVariable"
| ReadFile ->
F.fprintf fmt "File"
| CommandLineFlag (var, _) ->
F.fprintf fmt "CommandLineFlag\\[%a\\]" Var.pp var
F.fprintf fmt "CommandLineFlag(%a)" Var.pp var
| Other ->
F.fprintf fmt "Other"
| UserControlledEndpoint (formal_name, _) ->
F.fprintf fmt "UserControlledEndpoint\\[%s\\]" (Mangled.to_string formal_name)
F.fprintf fmt "UserControlledEndpoint(%s)" (Mangled.to_string formal_name)
end
module CppSource = Source.Make (SourceKind)

@ -250,7 +250,7 @@ module SourceKind = struct
| DrawableResource pvar ->
Pvar.to_string pvar
| Endpoint (formal_name, _) ->
F.asprintf "Endpoint\\[%s\\]" (Mangled.to_string formal_name)
F.asprintf "Endpoint(%s)" (Mangled.to_string formal_name)
| Intent ->
"Intent"
| IntentFromURI ->

Loading…
Cancel
Save