Bugs in uda.c

utzoo!decvax!decwrl!sun!megatest!fortune!hpda!hplabs!hao!menlo70!sytek!zehntel!tektronix!ogcvax!sequel!phil utzoo!decvax!decwrl!sun!megatest!fortune!hpda!hplabs!hao!menlo70!sytek!zehntel!tektronix!ogcvax!sequel!phil
Tue May 3 09:08:21 AEST 1983


The UDA50 driver supplied with 4.1 has a small typo in the routine
udattach().  I noticed iostat would not give stats on drive 0.
Also, as distributed, there is a printf that prints a debug message
on 11/750's.

Here is a "diff -c":

/*	uda.c	1.3	82/08/21	*/
*** uda.c	Mon May  2 11:22:10 1983
--- bky/uda.c	Sat Aug 21 19:47:18 1982
***************
*** 136,142
  	register struct uba_device *ui;
  {
  
! 	if (ui->ui_dk >= 0)
  		dk_mspw[ui->ui_dk] = 1.0 / (60 * 31 * 256);	/* approx */
  	ui->ui_flags = 0;
  	udip[ui->ui_ctlr][ui->ui_slave] = ui;

--- 136,142 -----
  	register struct uba_device *ui;
  {
  
! 	if (ui->ui_dk > 0)
  		dk_mspw[ui->ui_dk] = 1.0 / (60 * 31 * 256);	/* approx */
  	ui->ui_flags = 0;
  	udip[ui->ui_ctlr][ui->ui_slave] = ui;
***************
*** 308,314
  #if defined(VAX750)
  		if (cpu == VAX_750) {
  			if (um->um_ubinfo == 0)
! 				; /* printf("uda: um_ubinfo == 0\n"); */
  			else
  				ubarelse(um->um_ubanum, &um->um_ubinfo);
  		}

--- 308,314 -----
  #if defined(VAX750)
  		if (cpu == VAX_750) {
  			if (um->um_ubinfo == 0)
! 				printf("uda: um_ubinfo == 0\n");
  			else
  				ubarelse(um->um_ubanum, &um->um_ubinfo);
  		}

	Phil Hochstetler
	Sequel Computer Systems, Inc
	Portland Oregon





More information about the Comp.unix.wizards mailing list