Block device abstraction for OCaml 5 with Eio direct-style I/O and Bytesrw integration
1
fork

Configure Feed

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

fix(lint): replace Printf/Format with Fmt in block and bpsec

+3 -3
+3 -3
lib/block.ml
··· 315 315 if stored_crc <> computed_crc then 316 316 Error 317 317 (`Read_error 318 - (Printf.sprintf "CRC mismatch: stored=%lx computed=%lx" 319 - stored_crc computed_crc)) 318 + (Fmt.str "CRC mismatch: stored=%lx computed=%lx" stored_crc 319 + computed_crc)) 320 320 else Ok data 321 321 322 322 let write t sector data = 323 323 if String.length data <> t.data_size then 324 - Error (`Write_error (Printf.sprintf "data length must be %d" t.data_size)) 324 + Error (`Write_error (Fmt.str "data length must be %d" t.data_size)) 325 325 else 326 326 let crc = crc32c data in 327 327 let raw = data ^ encode_crc crc in