| 258 | } |
| 259 | |
| 260 | __attribute__((format (printf, 5, 6))) |
| 261 | static int report(struct fsck_options *options, |
| 262 | const struct object_id *oid, enum object_type object_type, |
| 263 | enum fsck_msg_id msg_id, const char *fmt, ...) |
| 264 | { |
| 265 | va_list ap; |
| 266 | struct fsck_object_report report = { |
| 267 | .oid = oid, |
| 268 | .object_type = object_type |
| 269 | }; |
| 270 | int result; |
| 271 | |
| 272 | if (object_on_skiplist(options, oid)) |
| 273 | return 0; |
| 274 | |
| 275 | va_start(ap, fmt); |
| 276 | result = fsck_vreport(options, &report, msg_id, fmt, ap); |
| 277 | va_end(ap); |
| 278 | |
| 279 | return result; |
| 280 | } |
| 281 | |
| 282 | int fsck_report_ref(struct fsck_options *options, |
| 283 | struct fsck_ref_report *report, |
no test coverage detected