upstream: https://github.com/avsm/osrelease
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(lint): replace Printf/Format with Fmt across remaining packages

Migrate Printf.sprintf to Fmt.str, Format.fprintf to Fmt.pf, and
Format.pp_print_string to Fmt.string across bundle, gpt, hap, homebrew,
jsonwt, matter, mbr, meross, paseto, precommit, publicsuffix, qemu,
retry, sdnv, slack, sle, space-packet, spake2, sqlite, squashfs, tar,
tc, tcf, tcpcl, tm, tomlt, tty, uslp, vlog, wal, wire, yamlrw, yamlt,
osrelease, space, xdge, and crypto test runner.

+4 -4
+1 -1
lib/dune
··· 1 1 (library 2 2 (name osrelease) 3 3 (public_name osrelease) 4 - (libraries bos astring)) 4 + (libraries bos astring fmt))
+3 -3
lib/osrelease.ml
··· 49 49 | `Aarch64 -> "arm64" 50 50 | `Unknown v -> v 51 51 52 - let pp fmt v = Format.pp_print_string fmt (to_string v) 52 + let pp fmt v = Fmt.string fmt (to_string v) 53 53 54 54 let of_string v : t = 55 55 match String.Ascii.lowercase v with ··· 106 106 | "dragonfly" -> `DragonFly 107 107 | v -> `Unknown v 108 108 109 - let pp fmt v = Format.pp_print_string fmt (to_string v) 109 + let pp fmt v = Fmt.string fmt (to_string v) 110 110 111 111 let v () = 112 112 match Sys.os_type with ··· 206 206 | _ -> `Other b) 207 207 with _ -> `Other "" 208 208 209 - let pp fmt v = Format.pp_print_string fmt (to_string v) 209 + let pp fmt v = Fmt.string fmt (to_string v) 210 210 211 211 let android_release = 212 212 lazy