ports/sysutils/parkverbot/files/patch-src_parkverbot.c
Alexey Dokuchaev d90109c46f sysutils/parkverbot: update the port to version 1.5
FreeBSD support had been integrated upstream; however, keep the
small hunk of our patch which reports the sector size, could be
useful for debugging potential problems.

Reported by:	portscout
2022-04-11 07:58:04 +00:00

14 lines
505 B
C

--- src/parkverbot.c.orig 2022-04-10 12:51:33 UTC
+++ src/parkverbot.c
@@ -150,8 +150,8 @@ static bool pv_open_device(const char *path)
e->size = size;
e->sector_size = sector_size;
e->fd = fd;
- printf("Added %s (size %s)\n", e->path,
- HX_unit_size(buf, sizeof(buf), e->size, 1024, 0));
+ printf("Added %s (size %s, sector size %d bytes)\n", e->path,
+ HX_unit_size(buf, sizeof(buf), e->size, 1024, 0), sector_size);
HXlist_add_tail(&pv_bdev_list, &e->anchor);
return true;
}