common: Move backend id/version log to where we init the backend.

This commit is contained in:
Solomon Peachy 2013-07-26 07:44:53 -04:00
parent 1d655d722a
commit 953ebd91ec

View file

@ -488,6 +488,8 @@ int main (int argc, char **argv)
signal(SIGTERM, sigterm_handler);
/* Initialize backend */
INFO("Initializing '%s' backend (version %s)\n",
backend->name, backend->version);
backend_ctx = backend->init();
/* Parse printjob if necessary */
@ -560,8 +562,7 @@ int main (int argc, char **argv)
close(data_fd);
/* Time for the main processing loop */
INFO("Printing started with '%s' backend version '%s' (%d copies)\n",
backend->name, backend->version, copies);
INFO("Printing started (%d copies)\n", copies);
ret = backend->main_loop(backend_ctx, copies);
if (ret)