mirror of
https://github.com/samba-team/samba.git
synced 2025-11-13 08:23:49 +03:00
Renamed get_nt_error_msg() to nt_errstr().
This commit is contained in:
@@ -69,7 +69,7 @@ uint32 spoolss_enum_printerdrivers(const char *srv_name, const char *environment
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_ENUMPRINTERDRIVERS: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_ENUMPRINTERDRIVERS: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
*needed=r_o.needed;
|
||||
*returned=r_o.returned;
|
||||
@@ -126,7 +126,7 @@ uint32 spoolss_enum_printers(uint32 flags, fstring srv_name, uint32 level,
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
/* report error code */
|
||||
DEBUG(3,("SPOOLSS_ENUMPRINTERS: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_ENUMPRINTERS: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
|
||||
*needed=r_o.needed;
|
||||
@@ -185,7 +185,7 @@ uint32 spoolss_enum_ports(fstring srv_name, uint32 level,
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_ENUMPORTS: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_ENUMPORTS: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
|
||||
*needed=r_o.needed;
|
||||
@@ -239,7 +239,7 @@ uint32 spoolss_enum_jobs(const POLICY_HND *hnd, uint32 firstjob, uint32 numofjob
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_ENUMJOBS: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_ENUMJOBS: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
*needed=r_o.needed;
|
||||
*returned=r_o.returned;
|
||||
@@ -297,7 +297,7 @@ uint32 spoolss_enum_printerdata(const POLICY_HND *hnd, uint32 idx,
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_ENUMPRINTERDATA: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_ENUMPRINTERDATA: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
|
||||
*valuelen=r_o.valuesize;
|
||||
@@ -357,7 +357,7 @@ uint32 spoolss_getprinter(const POLICY_HND *hnd, uint32 level,
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_GETPRINTER: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_GETPRINTER: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
*needed=r_o.needed;
|
||||
}
|
||||
@@ -410,7 +410,7 @@ uint32 spoolss_getprinterdriver(const POLICY_HND *hnd,
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_GETPRINTERDRIVER2: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_GETPRINTERDRIVER2: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
|
||||
*needed=r_o.needed;
|
||||
@@ -482,7 +482,7 @@ BOOL spoolss_open_printer_ex( const char *printername,
|
||||
if (prs_offset(&rbuf)!= 0 && r_o.status != 0)
|
||||
{
|
||||
/* report error code */
|
||||
DEBUG(3,("SPOOLSS_OPENPRINTEREX: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_OPENPRINTEREX: %s\n", nt_errstr(r_o.status)));
|
||||
p = False;
|
||||
}
|
||||
|
||||
@@ -561,7 +561,7 @@ BOOL spoolss_addprinterex(POLICY_HND *hnd, const char* srv_name, PRINTER_INFO_2
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
/* report error code */
|
||||
DEBUG(3,("SPOOLSS_ADDPRINTEREX: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_ADDPRINTEREX: %s\n", nt_errstr(r_o.status)));
|
||||
valid_pol = False;
|
||||
}
|
||||
}
|
||||
@@ -626,7 +626,7 @@ BOOL spoolss_closeprinter(POLICY_HND *hnd)
|
||||
if (prs_offset(&rbuf)!=0 && r_c.status != 0)
|
||||
{
|
||||
/* report error code */
|
||||
DEBUG(3,("SPOOL_CLOSEPRINTER: %s\n", get_nt_error_msg(r_c.status)));
|
||||
DEBUG(3,("SPOOL_CLOSEPRINTER: %s\n", nt_errstr(r_c.status)));
|
||||
}
|
||||
else
|
||||
valid_close = True;
|
||||
@@ -689,7 +689,7 @@ uint32 spoolss_getprinterdata(const POLICY_HND *hnd, const UNISTR2 *valuename,
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_GETPRINTERDATA: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_GETPRINTERDATA: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
|
||||
*type=r_o.type;
|
||||
@@ -748,7 +748,7 @@ uint32 spoolss_getprinterdriverdir(fstring srv_name, fstring env_name, uint32 le
|
||||
{
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
DEBUG(3,("SPOOLSS_GETPRINTERDRIVERDIRECTORY: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_GETPRINTERDRIVERDIRECTORY: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
|
||||
*needed=r_o.needed;
|
||||
@@ -800,7 +800,7 @@ uint32 spoolss_addprinterdriver(const char *srv_name, uint32 level, PRINTER_DRIV
|
||||
if (r_o.status != NT_STATUS_OK)
|
||||
{
|
||||
/* report error code */
|
||||
DEBUG(3,("SPOOLSS_ADDPRINTERDRIVER: %s\n", get_nt_error_msg(r_o.status)));
|
||||
DEBUG(3,("SPOOLSS_ADDPRINTERDRIVER: %s\n", nt_errstr(r_o.status)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user