fprintf(... replaced by fprintf(stdout,..

This commit is contained in:
h_vogt 2008-12-23 18:00:10 +00:00
parent f345bb62d7
commit d618da1a22
3 changed files with 6 additions and 6 deletions

View File

@ -886,7 +886,7 @@ fileEnd(runDesc *run)
place = ftell(run->fp);
fseek(run->fp, run->pointPos, 0);
fprintf(run->fp, "%d", run->pointCount);
printf("\nNo. of Data Rows : %d\n", run->pointCount);
fprintf(stdout, "\nNo. of Data Rows : %d\n", run->pointCount);
fseek(run->fp, place, 0);
} else {
/* Yet another hack-around */
@ -1009,7 +1009,7 @@ static void
plotEnd(runDesc *run)
{
fprintf(stderr,"\n");
printf("\nNo. of Data Rows : %d\n", run->pointCount);
fprintf(stdout, "\nNo. of Data Rows : %d\n", run->pointCount);
return;
}

View File

@ -463,7 +463,7 @@ fprintmem(FILE* stream, unsigned long int memory) {
# if defined(HAVE_WIN32) || defined(HAVE__PROC_MEMINFO)
static size_t get_procm(struct proc_mem *memall) {
#ifdef HAS_WINDOWS
#if defined (_MSC_VER)|| defined(__MINGW32__)
#if ( _WIN32_WINNT >= 0x0500)
/* Use Windows Api function to obtain size of memory */
HANDLE hProcess;
@ -503,7 +503,7 @@ static size_t get_procm(struct proc_mem *memall) {
(void) sprintf(fibuf, "/proc/%d/statm", getpid());
if((fp = fopen(fibuf, "r")) == NULL) {
perror("fopen()");
perror("fopen(\"/proc/%d/statm\")");
return 0;
}
bytes_read = fread (buffer, 1, sizeof (buffer), fp);
@ -544,7 +544,7 @@ static size_t get_sysmem(struct sys_mem *memall) {
long mem_got;
if((fp = fopen("/proc/meminfo", "r")) == NULL) {
perror("fopen()");
perror("fopen(\"/proc/meminfo\")");
return 0;
}

View File

@ -93,7 +93,7 @@ CKTdoJob(void *inCkt, int reset, void *inTask)
ckt->CKTlteAbstol = task->TSKlteAbstol;
#endif /* NEWTRUNC */
printf("Doing analysis at TEMP = %f and TNOM = %f\n\n",
fprintf(stdout, "Doing analysis at TEMP = %f and TNOM = %f\n\n",
ckt->CKTtemp - CONSTCtoK, ckt->CKTnomTemp - CONSTCtoK);
error = 0;