Skip to content

Commit

Permalink
[driver] Allow boot text to be disabled
Browse files Browse the repository at this point in the history
Suggested-by: Tal Aloni <tal.aloni.il@gmail.com>
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed Aug 15, 2011
1 parent a8a80f2 commit 8b48fa5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/driver/boottext.c
Expand Up @@ -62,6 +62,9 @@ VOID NTAPI InbvSolidColorFill ( IN ULONG Left, IN ULONG Top, IN ULONG Width,
IN ULONG Height, IN ULONG Color );
VOID NTAPI InbvSetProgressBarSubset ( IN ULONG Floor, IN ULONG Ceiling );

/** Boot text is enabled */
BOOLEAN boottext_enabled = TRUE;

/**
* Print text to boot screen
*
Expand All @@ -81,6 +84,10 @@ VOID BootPrint ( const char *fmt, ... ) {
/* Log to debugger, if attached */
DbgPrint ( "%s", buf );

/* Do nothing more unless boot text is enabled */
if ( ! boottext_enabled )
return;

/* Configure display */
if ( ! InbvCheckDisplayOwnership() )
InbvAcquireDisplayOwnership();
Expand Down
2 changes: 2 additions & 0 deletions src/driver/boottext.h
Expand Up @@ -19,6 +19,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

extern BOOLEAN boottext_enabled;

extern VOID BootPrint ( const char *fmt, ... );

#endif /* _BOOTTEXT_H */

0 comments on commit 8b48fa5

Please sign in to comment.