fprintf(... replaced by fprintf(stdout,..
This commit is contained in:
parent
f345bb62d7
commit
d618da1a22
|
|
@ -886,7 +886,7 @@ fileEnd(runDesc *run)
|
||||||
place = ftell(run->fp);
|
place = ftell(run->fp);
|
||||||
fseek(run->fp, run->pointPos, 0);
|
fseek(run->fp, run->pointPos, 0);
|
||||||
fprintf(run->fp, "%d", run->pointCount);
|
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);
|
fseek(run->fp, place, 0);
|
||||||
} else {
|
} else {
|
||||||
/* Yet another hack-around */
|
/* Yet another hack-around */
|
||||||
|
|
@ -1009,7 +1009,7 @@ static void
|
||||||
plotEnd(runDesc *run)
|
plotEnd(runDesc *run)
|
||||||
{
|
{
|
||||||
fprintf(stderr,"\n");
|
fprintf(stderr,"\n");
|
||||||
printf("\nNo. of Data Rows : %d\n", run->pointCount);
|
fprintf(stdout, "\nNo. of Data Rows : %d\n", run->pointCount);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -463,7 +463,7 @@ fprintmem(FILE* stream, unsigned long int memory) {
|
||||||
# if defined(HAVE_WIN32) || defined(HAVE__PROC_MEMINFO)
|
# if defined(HAVE_WIN32) || defined(HAVE__PROC_MEMINFO)
|
||||||
|
|
||||||
static size_t get_procm(struct proc_mem *memall) {
|
static size_t get_procm(struct proc_mem *memall) {
|
||||||
#ifdef HAS_WINDOWS
|
#if defined (_MSC_VER)|| defined(__MINGW32__)
|
||||||
#if ( _WIN32_WINNT >= 0x0500)
|
#if ( _WIN32_WINNT >= 0x0500)
|
||||||
/* Use Windows Api function to obtain size of memory */
|
/* Use Windows Api function to obtain size of memory */
|
||||||
HANDLE hProcess;
|
HANDLE hProcess;
|
||||||
|
|
@ -503,7 +503,7 @@ static size_t get_procm(struct proc_mem *memall) {
|
||||||
(void) sprintf(fibuf, "/proc/%d/statm", getpid());
|
(void) sprintf(fibuf, "/proc/%d/statm", getpid());
|
||||||
|
|
||||||
if((fp = fopen(fibuf, "r")) == NULL) {
|
if((fp = fopen(fibuf, "r")) == NULL) {
|
||||||
perror("fopen()");
|
perror("fopen(\"/proc/%d/statm\")");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
bytes_read = fread (buffer, 1, sizeof (buffer), fp);
|
bytes_read = fread (buffer, 1, sizeof (buffer), fp);
|
||||||
|
|
@ -544,7 +544,7 @@ static size_t get_sysmem(struct sys_mem *memall) {
|
||||||
long mem_got;
|
long mem_got;
|
||||||
|
|
||||||
if((fp = fopen("/proc/meminfo", "r")) == NULL) {
|
if((fp = fopen("/proc/meminfo", "r")) == NULL) {
|
||||||
perror("fopen()");
|
perror("fopen(\"/proc/meminfo\")");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ CKTdoJob(void *inCkt, int reset, void *inTask)
|
||||||
ckt->CKTlteAbstol = task->TSKlteAbstol;
|
ckt->CKTlteAbstol = task->TSKlteAbstol;
|
||||||
#endif /* NEWTRUNC */
|
#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);
|
ckt->CKTtemp - CONSTCtoK, ckt->CKTnomTemp - CONSTCtoK);
|
||||||
error = 0;
|
error = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue