1 /*             ----> DO NOT REMOVE THE FOLLOWING NOTICE <----
2  *
3  *                 Copyright (c) 2014-2015 Datalight, Inc.
4  *                     All Rights Reserved Worldwide.
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; use version 2 of the License.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but "AS-IS," WITHOUT ANY WARRANTY; without even the implied warranty
12  *  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License along
16  *  with this program; if not, write to the Free Software Foundation, Inc.,
17  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 /*  Businesses and individuals that for commercial or other reasons cannot
21  *  comply with the terms of the GPLv2 license may obtain a commercial license
22  *  before incorporating Reliance Edge into proprietary software for
23  *  distribution in any form.  Visit http://www.datalight.com/reliance-edge for
24  *  more information.
25  */
26 
27 /** @file
28  *  @brief Implements a sign on message.
29  */
30 #include <redfs.h>
31 
32 
33 /** @brief Display the Reliance Edge signon message.
34  */
RedSignOn(void)35 void RedSignOn( void )
36 {
37     #if REDCONF_OUTPUT == 1
38 
39         /*  Use RedOsOutputString() instead of RedPrintf() to avoid using variadic
40          *  arguments, since this function is called from the driver and cannot use
41          *  functions that violate MISRA-C:2012.
42          */
43         RedOsOutputString( RED_PRODUCT_NAME "\n" );
44         RedOsOutputString( RED_PRODUCT_EDITION "\n" );
45         RedOsOutputString( RED_PRODUCT_LEGAL "\n" );
46         RedOsOutputString( RED_PRODUCT_PATENT "\n" );
47     #else
48 
49         /*  Always embed the copyright into the program data.  Use "volatile" to try
50          *  to avoid the compiler removing the variables.
51          */
52         static volatile const char szVersion[] = RED_PRODUCT_NAME;
53         static volatile const char szEdition[] = RED_PRODUCT_EDITION;
54         static volatile const char szCopyright[] = RED_PRODUCT_LEGAL;
55         static volatile const char szPatent[] = RED_PRODUCT_PATENT;
56 
57         ( void ) szVersion;
58         ( void ) szEdition;
59         ( void ) szCopyright;
60         ( void ) szPatent;
61     #endif /* if REDCONF_OUTPUT == 1 */
62 }
63