Skip to content

Commit 460d582

Browse files
committed
Minimize exetool's output
1 parent 83e84c3 commit 460d582

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tools/exetool.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ int main(int argc, char *argv[])
138138

139139
/* Read the current SubSystem value */
140140
fread(&SubSystem, sizeof(unsigned short), 1, ExeFile);
141-
printf("Original SubSystem: 0x%04X <%s>\n", SubSystem, getSubSystemName(SubSystem));
142141

143142
/* Parse the new SubSystem value from the command line argument */
144143
NewSubSystem = getSubSystem(argv[2]);
@@ -150,7 +149,6 @@ int main(int argc, char *argv[])
150149
}
151150

152151
/* Print new SubSystem identifier */
153-
printf("New SubSystem: 0x%04X <%s>\n", NewSubSystem->Identifier, NewSubSystem->Name);
154152

155153
/* Seek back to the SubSystem field in the optional header */
156154
fseek(ExeFile, -sizeof(unsigned short), SEEK_CUR);
@@ -162,6 +160,7 @@ int main(int argc, char *argv[])
162160
fclose(ExeFile);
163161

164162
/* Finished successfully */
165-
printf("SubSystem successfully modified!\n");
163+
printf("PE SubSystem modified: 0x%04X <%s> to 0x%04X <%s>\n",
164+
SubSystem, getSubSystemName(SubSystem), NewSubSystem->Identifier, NewSubSystem->Name);
166165
return 0;
167166
}

0 commit comments

Comments
 (0)