Changeset 2900
- Timestamp:
- Dec 24, 2006, 2:46:52 PM (19 years ago)
- Location:
- trunk/libc/src/libc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/src/libc/io/write.c
r2739 r2900 95 95 96 96 /* Not all bytes have been written. */ 97 LIBCLOG_MSG ("Partial read n=%zu out_cnt=%zd lf_cnt1=%zd\n", n, out_cnt, lf_cnt_1);97 LIBCLOG_MSG2("Partial read n=%zu out_cnt=%zd lf_cnt1=%zd\n", n, out_cnt, lf_cnt_1); 98 98 99 99 if (n == 0) -
trunk/libc/src/libc/process/ulimit.c
r2748 r2900 76 76 int rc = setrlimit(RLIMIT_FSIZE, &rlim); 77 77 if (!rc) 78 LIBCLOG_RETURN_LONG( rlim.rlim_cur);79 LIBCLOG_ERROR_RETURN (-1);78 LIBCLOG_RETURN_LONG((long)rlim.rlim_cur); 79 LIBCLOG_ERROR_RETURN_LONG(-1L); 80 80 } 81 81 82 82 default: 83 83 errno = -EINVAL; 84 LIBCLOG_ERROR_RETURN (-1);84 LIBCLOG_ERROR_RETURN_LONG(-1L); 85 85 } 86 86 … … 91 91 int rc = getrlimit(iGet, &rlim); 92 92 if (!rc) 93 LIBCLOG_RETURN_LONG( rlim.rlim_cur);94 LIBCLOG_ERROR_RETURN (-1);93 LIBCLOG_RETURN_LONG((long)rlim.rlim_cur); 94 LIBCLOG_ERROR_RETURN_LONG(-1L); 95 95 } 96 96
Note:
See TracChangeset
for help on using the changeset viewer.