MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / BURP_print_warning

Function BURP_print_warning

src/burp/burp.cpp:1813–1847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1811
1812
1813void BURP_print_warning(Firebird::IStatus* status)
1814{
1815/**************************************
1816 *
1817 * B U R P _ p r i n t _ w a r n i n g
1818 *
1819 **************************************
1820 *
1821 * Functional description
1822 * Print warning message. Use fb_interpret
1823 * to allow redirecting output.
1824 *
1825 **************************************/
1826 if (status && (status->getState() & Firebird::IStatus::STATE_WARNINGS))
1827 {
1828 BurpMaster master;
1829 BurpGlobals* tdgbl = master.get();
1830
1831 // print the warning message
1832 const ISC_STATUS* vector = status->getWarnings();
1833 SCHAR s[1024];
1834
1835 if (fb_interpret(s, sizeof(s), &vector))
1836 {
1837 BURP_msg_partial(false, 255); // msg 255: gbak: WARNING:
1838 burp_output(false, "%s\n", s);
1839
1840 while (fb_interpret(s, sizeof(s), &vector))
1841 {
1842 BURP_msg_partial(false, 255); // msg 255: gbak: WARNING:
1843 burp_output(false, " %s\n", s);
1844 }
1845 }
1846 }
1847}
1848
1849
1850void BURP_verbose(USHORT number, const SafeArg& arg)

Callers

nothing calls this directly

Calls 5

BURP_msg_partialFunction · 0.85
burp_outputFunction · 0.85
getStateMethod · 0.45
getMethod · 0.45
getWarningsMethod · 0.45

Tested by

no test coverage detected