/*
- * "$Id: lpinfo.c 7810 2008-07-29 01:11:15Z mike $"
+ * "$Id$"
*
* "lpinfo" command for CUPS.
*
cupsSetEncryption(HTTP_ENCRYPT_REQUIRED);
#else
_cupsLangPrintf(stderr,
- _("%s: Sorry, no encryption support compiled in\n"),
+ _("%s: Sorry, no encryption support."),
argv[0]);
#endif /* HAVE_SSL */
break;
if (i >= argc)
{
_cupsLangPuts(stderr,
- _("Error: need hostname after \'-h\' option\n"));
+ _("Error: need hostname after \"-h\" option."));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpinfo: Expected 1284 device ID string "
- "after --device-id\n"));
+ "after \"--device-id\"."));
return (1);
}
}
{
_cupsLangPuts(stderr,
_("lpinfo: Expected scheme list after "
- "--exclude-schemes\n"));
+ "\"--exclude-schemes\"."));
return (1);
}
}
{
_cupsLangPuts(stderr,
_("lpinfo: Expected scheme list after "
- "--include-schemes\n"));
+ "\"--include-schemes\"."));
return (1);
}
}
{
_cupsLangPuts(stderr,
_("lpinfo: Expected language after "
- "--language\n"));
+ "\"--language\"."));
return (1);
}
}
{
_cupsLangPuts(stderr,
_("lpinfo: Expected make and model after "
- "--make-and-model\n"));
+ "\"--make-and-model\"."));
return (1);
}
}
{
_cupsLangPuts(stderr,
_("lpinfo: Expected product string after "
- "--product\n"));
+ "\"--product\"."));
return (1);
}
}
else
{
_cupsLangPuts(stderr,
- _("lpinfo: Expected timeout after --timeout\n"));
+ _("lpinfo: Expected timeout after "
+ "\"--timeout\"."));
return (1);
}
}
}
else
{
- _cupsLangPrintf(stderr, _("lpinfo: Unknown option \'%s\'\n"),
+ _cupsLangPrintf(stderr, _("lpinfo: Unknown option \"%s\"."),
argv[i]);
return (1);
}
break;
default :
- _cupsLangPrintf(stderr, _("lpinfo: Unknown option \'%c\'\n"),
+ _cupsLangPrintf(stderr, _("lpinfo: Unknown option \"%c\"."),
argv[i][1]);
return (1);
}
else
{
- _cupsLangPrintf(stderr, _("lpinfo: Unknown argument \'%s\'\n"),
+ _cupsLangPrintf(stderr, _("lpinfo: Unknown argument \"%s\"."),
argv[i]);
return (1);
}
" info = %s\n"
" make-and-model = %s\n"
" device-id = %s\n"
- " location = %s\n"),
+ " location = %s"),
device_uri, device_class, device_info,
device_make_and_model, device_id, device_location);
}
else
- _cupsLangPrintf(stdout, "%s %s\n", device_class, device_uri);
+ _cupsLangPrintf(stdout, "%s %s", device_class, device_uri);
}
if (cupsGetDevices(CUPS_HTTP_DEFAULT, timeout, include_schemes,
exclude_schemes, device_cb, &long_status) != IPP_OK)
{
- _cupsLangPrintf(stderr, "lpinfo: %s\n", cupsLastErrorString());
+ _cupsLangPrintf(stderr, "lpinfo: %s", cupsLastErrorString());
return (1);
}
if (response->request.status.status_code > IPP_OK_CONFLICT)
{
- _cupsLangPrintf(stderr, "lpinfo: %s\n", cupsLastErrorString());
+ _cupsLangPrintf(stderr, "lpinfo: %s", cupsLastErrorString());
ippDelete(response);
return (1);
}
_("Model: name = %s\n"
" natural_language = %s\n"
" make-and-model = %s\n"
- " device-id = %s\n"),
+ " device-id = %s"),
ppd_name, ppd_language, ppd_make_model, ppd_device_id);
}
else
- _cupsLangPrintf(stdout, "%s %s\n", ppd_name, ppd_make_model);
+ _cupsLangPrintf(stdout, "%s %s", ppd_name, ppd_make_model);
if (attr == NULL)
break;
}
else
{
- _cupsLangPrintf(stderr, "lpinfo: %s\n", cupsLastErrorString());
+ _cupsLangPrintf(stderr, "lpinfo: %s", cupsLastErrorString());
return (1);
}
/*
- * End of "$Id: lpinfo.c 7810 2008-07-29 01:11:15Z mike $".
+ * End of "$Id$".
*/