Commit fbb8eaf8 authored by claes's avatar claes

Nodename converted to lower

parent cd8b7e40
/*
* Proview $Id: wb_gcg.cpp,v 1.3 2007-05-28 14:52:13 claes Exp $
* Proview $Id: wb_gcg.cpp,v 1.4 2007-09-17 07:09:23 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -4769,7 +4769,7 @@ static int gcg_get_rtnode_plcthread(
if ( EVEN(sts)) return sts;
/* Check that the class of the node object is correct */
if ( cid == pwr_cClass_NodeHier) {
if ( cid == pwr_cClass_NodeHier || cid == pwr_cClass_Node) {
/* Check if the children is a thread */
sts = gcg_get_child_plcthread( gcgctx, objdid, rtnode, os,
thread_count, threadlist);
......@@ -5331,7 +5331,7 @@ int gcg_comp_rtnode(
if (IS_VMS_OR_ELN(os))
{
sprintf( fullfilename,"%splc_%s_%4.4d.opt", "pwrp_tmp:", nodename, bus);
sprintf( fullfilename,"%splc_%s_%4.4d.opt", "pwrp_tmp:", cdh_Low(nodename), bus);
dcli_translate_filename( fullfilename, fullfilename);
if ((files[1] = fopen( fullfilename,"w")) == NULL)
{
......@@ -5448,7 +5448,7 @@ int gcg_comp_rtnode(
if (IS_VMS_OR_ELN(os))
{
sprintf( plcfilename, "pwrp_exe:plc_%s_%4.4d_%5.5ld.exe",
nodename, bus, plc_version);
cdh_Low(nodename), bus, plc_version);
sprintf( fullfilename,"%s%s_%4.4d", gcgmn_filenames[0], nodename, bus);
gcg_cc( GCG_RTNODE, fullfilename, plcfilename, NULL, os,
GCG_NOSPAWN);
......@@ -5456,7 +5456,7 @@ int gcg_comp_rtnode(
else
{
sprintf( plcfilename, "plc_%s_%4.4d_%5.5ld",
nodename, bus, plc_version);
cdh_Low(nodename), bus, plc_version);
sprintf( fullfilename,"%s%s_%4.4d", gcgmn_filenames[0], nodename, bus);
gcg_cc( GCG_RTNODE, fullfilename, plcfilename,
plclib_frozen, os, GCG_NOSPAWN);
......
/*
* Proview $Id: wb_lfu.cpp,v 1.6 2007-06-05 12:21:45 claes Exp $
* Proview $Id: wb_lfu.cpp,v 1.7 2007-09-17 07:09:23 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -298,7 +298,7 @@ pwr_tStatus lfu_create_bootfile(
sts = lfu_IncrementAndGetVersion( filename, &plc_version);
if ( EVEN(sts)) return sts;
sprintf( plcname, load_cNamePlc, "", nodename, bus, (int)plc_version);
sprintf( plcname, load_cNamePlc, "", cdh_Low(nodename), bus, (int)plc_version);
printf( " %s\n", plcname);
sts = gcg_comp_rtnode( nodename, os,
......@@ -310,7 +310,7 @@ pwr_tStatus lfu_create_bootfile(
/* Open the file and print boot data */
sprintf( filename, load_cNameBoot,
load_cDirectory, nodename, bus);
load_cDirectory, cdh_Low(nodename), bus);
dcli_translate_filename( filename, filename);
file = fopen( filename, "w");
if ( !file) {
......@@ -1332,7 +1332,8 @@ pwr_tStatus lfu_SaveDirectoryVolume(
if ( !found)
return 0;
sprintf( filename, load_cNameNode, load_cDirectory, nodevect[idx].nodename, bus_number);
sprintf( filename, load_cNameNode, load_cDirectory, cdh_Low(nodevect[idx].nodename),
bus_number);
dcli_translate_filename( fname, filename);
fp = fopen( fname, "w");
if ( fp == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment