chiark / gitweb /
realtime: break out new function movpos.c:ouposn_stable
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 13 Feb 2011 21:26:14 +0000 (21:26 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 13 Feb 2011 21:26:14 +0000 (21:26 +0000)
hostside/movpos.c

index 4bbc7f7f78c579f16c2d2919a1714d28a752fe18..02ed4b39b84947b8a3f8f0b73ea0805794aab924 100644 (file)
@@ -113,6 +113,10 @@ static void ouposn_moving(const MovPosChange *indep) {
   ouprintf("movpos %s position %s moving\n",
           move->i->pname, movpos_pname(move, indep->actual));
 }
+static void ouposn_stable(const Segment *move) {
+  ouprintf("movpos %s position %s stable\n",
+          move->i->pname, movpos_pname(move, move->movposcomb));
+}
 
 MovPosComb movposcomb_update_feature(MovPosComb startpoint,
                                     const MovFeatInfo *mfi,
@@ -730,8 +734,7 @@ static void indep_indep_done(Indep *indep) {
   move->moving= 0;
   move->motion= 0;
   move->movposcomb= indep->target;
-  ouprintf("movpos %s position %s stable\n",
-          move->i->pname, movpos_pname(move, move->movposcomb));
+  ouposn_stable(move);
   free(indep);
 }