The function print_commit() now accepts C-style format identifier to allow better customization.