changeset 94:fbd99740af99

printk() message for video off when releasing mga without ioctl()
author lgb
date Mon, 12 Mar 2001 01:44:07 +0000
parents 9b1462feadcb
children 2c2d82db06ef
files drivers/mga_vid.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/mga_vid.c	Mon Mar 12 01:35:48 2001 +0000
+++ b/drivers/mga_vid.c	Mon Mar 12 01:44:07 2001 +0000
@@ -660,7 +660,7 @@
 		break;
 
 		case MGA_VID_OFF:
-			printk(KERN_DEBUG "mga_vid: Video OFF\n");
+			printk(KERN_DEBUG "mga_vid: Video OFF (ioctl)\n");
 			vid_src_ready = 0;   
 #ifdef MGA_ALLOW_IRQ
 			if ( mga_irq != -1 ) disable_irq();
@@ -844,6 +844,8 @@
 static int mga_vid_release(struct inode *inode, struct file *file)
 {
 	//Close the window just in case
+	printk(KERN_DEBUG "mga_vid: Video OFF (release)\n");
+
 	vid_src_ready = 0;   
 	regs.besctl &= ~1;
 	mga_vid_write_regs();