Substitute fprintf call by fputs call to conform with the new ubuntu

compilation rules
This commit is contained in:
2016-07-03 09:21:56 +02:00
parent f830389974
commit aff9831c13
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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),