mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
14 lines
430 B
C
14 lines
430 B
C
--- utils/iscsi-discard.c.orig 2024-02-05 23:51:38 UTC
|
|
+++ utils/iscsi-discard.c
|
|
@@ -220,7 +220,11 @@ int main(int argc, char *argv[])
|
|
|
|
capacity = block_length * (rc16->returned_lba + 1);
|
|
if (offset > capacity) {
|
|
+#ifndef __LP64__
|
|
+ fprintf(stderr,"Offset(%llu) exceeds capacity(%llu)\n", offset, capacity);
|
|
+#else
|
|
fprintf(stderr,"Offset(%lu) exceeds capacity(%lu)\n", offset, capacity);
|
|
+#endif
|
|
goto free_task;
|
|
}
|
|
|