\hypertarget{BUG_8c}{
\section{BUG.c File Reference}
\label{BUG_8c}\index{BUG.c@{BUG.c}}
}
Defines a set of routines for bugchecking the CPU. 

{\tt \#include \char`\"{}PBS/BUG.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/REG.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/PBS.h\char`\"{}}\par
{\tt \#include $<$stdarg.h$>$}\par


Include dependency graph for BUG.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=292pt]{BUG_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{BUG_8c_a0}{BUG\_\-check} (int status, const char $\ast$reason,...)
\begin{CompactList}\small\item\em Simple routine to declare a BUG check. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Defines a set of routines for bugchecking the CPU. 

\begin{Desc}
\item[Author:]JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}


\footnotesize\begin{verbatim}    CVS $Id: BUG.c,v 1.3 2004/05/12 16:19:04 russell Exp $
\end{verbatim}
\normalsize


This routine is deprecated, being replaced by PBS\_\-panic

\subsection{Function Documentation}
\hypertarget{BUG_8c_a0}{
\index{BUG.c@{BUG.c}!BUG_check@{BUG\_\-check}}
\index{BUG_check@{BUG\_\-check}!BUG.c@{BUG.c}}
\subsubsection[BUG\_\-check]{\setlength{\rightskip}{0pt plus 5cm}void BUG\_\-check (int {\em status}, const char $\ast$ {\em reason},  {\em ...})}}
\label{BUG_8c_a0}


Simple routine to declare a BUG check. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em status}]A status value to be associated with the failure \item[{\em reason}]A C-style formatting string\end{description}
\end{Desc}
Prints a simple message consisting of the status value and a string. The string is formatted using the {\em reason\/} as a C-style formatting string which consumes the remaining arguments.

{\bf EXAMPLE} \par
 \par
 

\footnotesize\begin{verbatim}BUG_check (0xdeadbeef,
          "Mad Cow Disease takes over GFS inflicting %d programmers\n",
          nProgrammers);
\end{verbatim}
\normalsize
 \par
