*
* @param buffer <code>StringBuffer</code> to add the report to
* @param sent indicates which commands (sent/received) should be reported
*/
protected void reportLastCommands(boolean sent) {
CircularIntegerBuffer buf = sent ? debugLastFewCommandsSent
: debugLastFewCommandsReceived;
System.err.print(" Last "); //$NON-NLS-1$
System.err.print(buf.length());
System.err.print(" commands that were "); //$NON-NLS-1$
System.err.print(sent ? "sent" : "received"); //$NON-NLS-1$
System.err.print(" (oldest first): "); //$NON-NLS-1$
System.err.println(buf);
}