Substitute fprintf call by fputs call to conform with the new ubuntu
compilation rules
This commit is contained in:
@ -5,6 +5,7 @@ from ..utils cimport str2bytes
|
|||||||
cdef extern from "stdio.h":
|
cdef extern from "stdio.h":
|
||||||
struct FILE
|
struct FILE
|
||||||
int fprintf(FILE *stream, char *format, ...)
|
int fprintf(FILE *stream, char *format, ...)
|
||||||
|
int fputs(char *string, FILE *stream)
|
||||||
FILE* stderr
|
FILE* stderr
|
||||||
ctypedef unsigned int off_t "unsigned long long"
|
ctypedef unsigned int off_t "unsigned long long"
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ cdef class ProgressBar:
|
|||||||
if twentyth != self.lastlog:
|
if twentyth != self.lastlog:
|
||||||
|
|
||||||
if self.ontty:
|
if self.ontty:
|
||||||
<void>fprintf(stderr,b'\n')
|
<void>fputs(b'\n',stderr)
|
||||||
|
|
||||||
self.logger.info('%s %5.1f %% remain : %02d:%02d:%02d' % (
|
self.logger.info('%s %5.1f %% remain : %02d:%02d:%02d' % (
|
||||||
bytes2str(self.head),
|
bytes2str(self.head),
|
||||||
|
Reference in New Issue
Block a user