···115115 u_log(file, line, func, level, "%s", tmp);
116116117117 offset += 16;
118118- if (offset > 0xffffffff) { /* Limit the dump length to 4GB(!) */
118118+ /*
119119+ * Limit the dump length to 16MB, this used to be 4GB which
120120+ * would on 32bit system always evaltuate to false. So we have
121121+ * the limit on something more sensible.
122122+ */
123123+ if (offset > 0x00ffffff) {
124124+ u_log(file, line, func, level, "Truncating output over 16MB");
119125 break;
120126 }
121127 }
···138144 u_log_xdev(file, line, func, level, xdev, "%s", tmp);
139145140146 offset += 16;
141141- if (offset > 0xffffffff) { /* Limit the dump length to 4GB(!) */
147147+ /*
148148+ * Limit the dump length to 16MB, this used to be 4GB which
149149+ * would on 32bit system always evaltuate to false. So we have
150150+ * the limit on something more sensible.
151151+ */
152152+ if (offset > 0x00ffffff) {
153153+ u_log_xdev(file, line, func, level, xdev, "Truncating output over 16MB");
142154 break;
143155 }
144156 }