Re #307 Moved printf calls to GfLogXX

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4412 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 6a30f6b01bc1d5feccf1388b66b77f9c0ca908ba
Former-commit-id: 4b156cc63e951a7f3015f3749291c8e205c5c1ac
This commit is contained in:
pouillot 2012-01-14 16:29:09 +00:00
parent 876f68d96f
commit f82603b11c

View file

@ -1021,7 +1021,7 @@ static void AddPitDoors(tTrack *theTrack, void *TrackHandle, bool found) {
//TODO(kilo) get rid of following 3 lines when above feature is ready
pits->driversPits[i].pos.seg = mSeg;
pits->driversPits[i].pos.toStart = (tdble)(toStart + pits->len / 2.0);
printf("toStart: %s %.2f ", mSeg->name, pits->driversPits[i].pos.toStart);
GfLogDebug("toStart: %s %.2f ", mSeg->name, pits->driversPits[i].pos.toStart);
switch (pits->side) {
@ -1295,7 +1295,7 @@ CreateSegRing(void *TrackHandle, tTrack *theTrack, tTrackSeg *start, tTrackSeg *
segName = GfParmListGetCurEltName(TrackHandle, path);
if (ext) {
if (GfHashGetStr(segNameHash, segName)) {
printf(">>>>>>>>> DUPLICATED SEGMENT NAME \"%s\" PLEASE CHANGE IT !!!!\n", segName);
GfLogError("DUPLICATED SEGMENT NAME \"%s\" PLEASE CHANGE IT !!!!\n", segName);
exit(1);
}
GfHashAddStr(segNameHash, segName, segName);
@ -1437,7 +1437,7 @@ CreateSegRing(void *TrackHandle, tTrack *theTrack, tTrackSeg *start, tTrackSeg *
curSeg->surface = surface;
curSeg->envIndex = envIndex;
curSeg->DoVfactor = DoVfactor;
/*printf("curseg id =%d factor =%f\n",curSeg->id,curSeg->DoVfactor);*/
/*GfLogDebug("curseg id =%d factor =%f\n",curSeg->id,curSeg->DoVfactor);*/
curSeg->lgfromstart = totLength;
if (ext && ind) {
@ -1647,7 +1647,7 @@ CreateSegRing(void *TrackHandle, tTrack *theTrack, tTrackSeg *start, tTrackSeg *
curindex++;
curStep++;
if (type != TR_STR) {
/* printf("radius = %f arc = %f steps %d, length %f, stepslg %f\n", radius, RAD2DEG(curArc), steps, length, curLength); */
/* GfLogDebug("radius = %f arc = %f steps %d, length %f, stepslg %f\n", radius, RAD2DEG(curArc), steps, length, curLength); */
radius += dradius;
}
}
@ -1658,7 +1658,7 @@ CreateSegRing(void *TrackHandle, tTrack *theTrack, tTrackSeg *start, tTrackSeg *
GfHashRelease(segNameHash, NULL);
}
/* printf("\n"); */
/* GfLogDebug("\n"); */
theTrack->seg = root;