Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#23 closed defect (fixed)

acquire_resource incorrectly formats error message (MCR10010)

Reported by: Eric Swenson Owned by: Eric Swenson
Priority: major Milestone: MR12.6e
Component: Tools Version: MR12.6d
Keywords: Cc:

Description

acquire_resource incorrectly formats error message:

r 13:46 0.371 11

aqr disk_vol dskb

acquire_resource: for \000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000 \000\ \c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000

bound_rcp_support_:register_resource.pl1

crump_in_struc:

entry (code, reason);

      do i = 1 to resource_descriptions.n_items while (resource_descriptions.item (i).status_code = 0);
      end;

      if i <= resource_descriptions.n_items then
         call com_err_ (code, myname, reason);
      else call com_err_ (resource_descriptions.item (i).status_code, myname, "for ^a ^a",
                resource_descriptions.item (i).type, resource_descriptions.item (i).name);

The routine searches the acquired resource list looking for a non-zero status code; if it finds one, it displays information about that resource. If one is not found, it displays information about why the resource was not acquired.

Unfortunately, the logic in the 'if' is reversed; it displays information about the n+1th entry, which is both unitialized and unhelpful, and fails to display "reason", which is what is needed.

Demonstration of fixed code (s/<=/>/):

r 13:58 4.600 143

cac$aqr disk_vol dskb

acquire_resource: Entry not found. Cannot acquire resources.

Change History (6)

comment:1 by Eric Swenson, 10 years ago

comment:2 by Eric Swenson, 10 years ago

The same bug is in register_resource.pl1 -- Charles

comment:3 by Eric Swenson, 10 years ago

MCR10010 addressed this issue. Fix in one of the MR12.6x releases.

comment:4 by Eric Swenson, 10 years ago

Resolution: fixed
Status: newclosed

comment:5 by Eric Swenson, 10 years ago

Milestone: MR12.6e
Version: MR12.6d

comment:6 by Eric Swenson, 9 years ago

Summary: acquire_resource incorrectly formats error messageacquire_resource incorrectly formats error message (MCR10010)
Note: See TracTickets for help on using tickets.