svn path=/trunk/; revision=45892
callbacks in print.c. Clean up some other issues in print.c. svn path=/trunk/; revision=45860