If ps_udevice_msgs >= 2, print complete line of unsupported PSpice instance. For debugging purposes.

This commit is contained in:
Brian Taylor 2022-09-15 08:36:47 -07:00 committed by Holger Vogt
parent d1f7df5ef4
commit 93bd661a3e
1 changed files with 4 additions and 1 deletions

View File

@ -3394,7 +3394,7 @@ BOOL u_check_instance(char *line)
itype = hdr->instance_type;
xspice = find_xspice_for_delay(itype);
if (!xspice) {
if (ps_udevice_msgs == 1) {
if (ps_udevice_msgs >= 1) {
if (current_subckt && subckt_msg_count == 0) {
printf("%s\n", current_subckt);
}
@ -3402,6 +3402,9 @@ BOOL u_check_instance(char *line)
printf("WARNING ");
printf("Instance %s type %s is not supported\n",
hdr->instance_name, itype);
if (ps_udevice_msgs >= 2) {
printf("%s\n", line);
}
}
delete_instance_hdr(hdr);
return FALSE;